Robotics & Artificial Intelligence

Write a Python program to display all the elements of a tuple using the for loop.

Python Tuples

2 Likes

Answer

my_tuple = (23, 45, 67, 89, 12)

for i in my_tuple:
    print(i)

Output

23
45
67
89
12

Answered By

3 Likes


Related Questions