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 235 views
1 answer 248 views
1 answer 291 views
1 answer 302 views
1 answer 273 views
1 answer 277 views
...