programming-examples/python/Tuple/Python program to check whether an element exists within a tuple.py
2019-11-15 12:59:38 +01:00

3 lines
99 B
Python

tuplex = ("w", 3, "r", "e", "s", "o", "u", "r", "c", "e")
print("r" in tuplex)
print(5 in tuplex)