Python Programming - Tuple methods in Python(count(), index())

Python Programming - Tuple methods in Python(count(), index())

A tuple is a collection of objects which ordered and immutable. Tuples are sequences, just like lists. The differences between tuples and lists are, the tuples cannot be changed unlike lists and tuples use parentheses, whereas lists use square brackets.br Tuple are immutable.br br Method Descriptionbr count() Returns the number of times a specified value occurs in a tuplebr index() Searches the tuple for a specified value and returns the position of where it was foundbr br If you found this video valuable, give it like br If you know someone who needs to see it, share it.br Add it to a playlist if you want to watch it later.


User: Programmer Dushyant

Views: 0

Uploaded: 2020-07-08

Duration: 02:55