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 147 views
1 answer 158 views
4 answers 340 views
340 views asked Jan 10, 2021 by avibootz
1 answer 331 views
1 answer 182 views
1 answer 241 views
...