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 151 views
1 answer 161 views
4 answers 353 views
353 views asked Jan 10, 2021 by avibootz
1 answer 339 views
1 answer 191 views
1 answer 248 views
...