Answers for "python get all list elements"

2

print all elements in list python

# using for loop
scores = [11, 12, 13, 14, 15, 16]
for score in scores:
    print(score)
Posted by: Guest on May-14-2020
1

find all element in list python

indices = [i for i, x in enumerate(my_list) if x == "whatever"]
Posted by: Guest on March-01-2021

Code answers related to "python get all list elements"

Python Answers by Framework

Browse Popular Code Answers by Language