Tuple Functions Index tuple1 = ("Red", "Blue", "Red", "Green") print(tuple1.index("Blue")) Terminal: 1 Count tuple1 = ("Orange", "Green", "Orange", "Blue") print(tuple1.count("Orange")) Terminal: 2 List Functions Clear .clear() is used to empty the l...
dev2-python.hashnode.dev2 min read
No responses yet.