How to loop through a list of strings using for loop in Python

1 Answer

0 votes
lst = ["c", "python", "php", "java", "c++"] 

for value in lst:
    print(value)



'''
run:

c
python
php
java
c++

'''

 



answered May 20, 2023 by avibootz

Related questions

1 answer 141 views
1 answer 154 views
4 answers 327 views
327 views asked Jan 10, 2021 by avibootz
1 answer 325 views
1 answer 176 views
1 answer 234 views
...