Python Tutorial: Tuples in Python

preview_player
Показать описание
Tuples are the immutable versions of the list.
#region Notes
"""
1. Heterogenous Elements
2. Ordered sequence
4. Accessed by index
3. No bound on the size
5. Immutable
"""
#endregion
a=("Ravi",12,12.2,True)
print(len(a))
b=(1,4,1,24,42)
print(max(b))
print(min(b))
Рекомендации по теме