How to loop through a tuple in Python

1 Answer

0 votes
tpl = ("python", "c", "c++")

for x in tpl:
  print(x) 




'''
run:

python
c
c++

'''

 



answered May 14, 2021 by avibootz

Related questions

1 answer 139 views
1 answer 162 views
1 answer 194 views
1 answer 213 views
1 answer 190 views
1 answer 190 views
...