Complete Video Learning
Table of Contents
Once a tuple is created, we cannot change its values because tuple is unchangeable.
Create a Tuple
t=("amit", "sumit", "ravi") print(t)
t=("amit", "sumit", "ravi") print(t[2])
t=("amit", "sumit", "ravi") for i in t: print(i)
t=("amit", "sumit", "ravi") if "sumit" in t: print("Yes, 'sumit' is found in tuple") else: print("No, 'sumit' is found in tuple")