Wednesday, January 28, 2015

Tuple

A tuple is a sequence of immutable Python objects. Tuples are sequences, just like lists. The only difference is that tuples can't be changed i.e., tuples are immutable and tuples use parentheses and lists use square brackets.

Source Code: example9.py
Output: Python Shell
 Reference: www.tutorialspoint.com

No comments:

Post a Comment