List Functions in Python
Nov 4, 2021 · 2 min read · 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...
Join discussion


