xxxxxxxxxx
sample_list = ['Python', 'with', 'FavTutor']
for i in range(0, len(sample_list)):
print(sample_list[i])
xxxxxxxxxx
# to print all elements of a list you can simply use
list = [0, 1, 2, 3]
print(list) # -> [0, 1, 2, 3]
# to remove brackets and commas
print(*list) # -> 0 1 2 3
# you should use a for loop only when you don't want to print all elements
xxxxxxxxxx
from operator import length_hint
sample_list = ['Programming', 'with', 'Favtutor']
list_size = length_hint(sample_list)
print(list_size)