Python Tuple
Tuple is an ordered sequence of items same as list. The
only difference is that tuples are immutable. Tuples once created cannot be
modified.
Tuples
are used to write-protect data and are usually faster than list as it cannot
change dynamically.
It is
defined within parentheses () where items are separated by commas.
Eg:
>>>
t = (5,'program', 1+3j)
>>>a=(5,7.9,10)
Related Topics
Privacy Policy, Terms and Conditions, DMCA Policy and Compliant
Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.