TUPLE, An ordered sequence of elements of different datatypes. , INDEXING, accessing elements in a tuple e.g. tuple_name[index no], SLICING, tuple_name[start: stop: step], CREATE A TUPLE WITH SINGLE ELEMENT, Element should be followed by a comma ( element ,), TUPLE NATURE, It is immutable which means it cannot be changed in place after it has been created., TYPE ERROR, tuple[2] =15, CONCATENATION, Tuples can be joined using + symbol, REPETITION, We can repeat the tuple elements using *. , EXTENSION OF A TUPLE, tuple+=(value,), count(), Returns the number of times the given element is present in the tuple, REVERSE OF A TUPLE, tuple_name[ : :-1], sorted(), Takes the element of a tuple and returns a new sorted list., PACKING, s_name= (admno,sname,class,marks), UNPACKING, prin,rate,time = simple_interest, SWAPPING OF 2 NUMBERS, a,b = b,a.
0%
OPERATORS IN PYTHON
Share
Share
Share
by
Karishma58
Edit Content
Print
Embed
More
Assignments
Leaderboard
Show more
Show less
This leaderboard is currently private. Click
Share
to make it public.
This leaderboard has been disabled by the resource owner.
This leaderboard is disabled as your options are different to the resource owner.
Revert Options
Match up
is an open-ended template. It does not generate scores for a leaderboard.
Log in required
Visual style
Fonts
Subscription required
Options
Switch template
Show all
More formats will appear as you play the activity.
)
Open results
Copy link
QR code
Delete
Continue editing:
?