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 151 views
1 answer 178 views
1 answer 218 views
1 answer 235 views
1 answer 196 views
1 answer 197 views
...