Professional Documents
Culture Documents
By-
Neha Tyagi
PGT CS
KV 5 Jaipur II Shift
Jaipur Region
• Long tuple:
• Nested tuple:
• Membership operator:
• Working of membership operator “in” and “not in” is same as
in a list. (for details see the chapter- list manipulation).
• Concatenation and Replication operators:
• + operator adds second tuple at the end of first tuple. * operator repeats
elements of tuple.
Neha Tyagi, KV 5 Jaipur II Shift
Accessing a Tuple
• Accessing Individual elements-
• Traversal of a Tuple –
for <item> in <tuple>:
#to process every element.
OUTPUT
• Tuple Replication-
max( ) Function
min( ) Function
index( ) Function
tuple( ) Function
www.pythontrends.wordpress.com