tapple
Estimated reading time: 1 minutetapple
()- most same as
lists unchangeable/immutable
price = (1,2,3,4)
print(price)
# (1,2,3,4)
print(len(price))
# 4
lists to taple
price = [1,2,3,4]
print(tuple(price))
(1,2,3,4)
()listsunchangeable / immutableprice = (1,2,3,4)
print(price)
# (1,2,3,4)
print(len(price))
# 4
price = [1,2,3,4]
print(tuple(price))
(1,2,3,4)