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 239 views
1 answer 237 views
4 answers 497 views
497 views asked Jan 10, 2021 by avibootz
1 answer 421 views
4 answers 393 views
4 answers 439 views
...