programming-examples/python/Tuple/Python program to check whether an element exists within a tuple.py

3 lines
99 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
tuplex = ("w", 3, "r", "e", "s", "o", "u", "r", "c", "e")
print("r" in tuplex)
print(5 in tuplex)