How to Iterate Values of a Tuple in Python


In this example we will show how to iterate the values of a tuple in Python.

Source Code

my_tuple = ('a', 'b', 'c')
for x in my_tuple:
    print(x)

Output:

a
b
c
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments