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

此内容来自第三方平台 (Dailymotion)。如果此视频侵犯了您的版权,请使用 立即删除 工具。

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

0 次观看 02:55 Programmer Dushyant

描述

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.
Tuple are immutable.

Method Description
count() Returns the number of times a specified value occurs in a tuple
index() Searches the tuple for a specified value and returns the position of where it was found
__________________________________________________
If you found this video valuable, give it like
If you know someone who needs to see it, share it.
Add it to a playlist if you want to watch it later.
___________________________________________________