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 235 views
1 answer 236 views
4 answers 496 views
496 views asked Jan 10, 2021 by avibootz
1 answer 418 views
4 answers 384 views
4 answers 432 views
...