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 147 views
1 answer 172 views
1 answer 204 views
1 answer 223 views
1 answer 193 views
1 answer 194 views
...