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 141 views
1 answer 166 views
1 answer 197 views
1 answer 216 views
1 answer 191 views
1 answer 191 views
...