๐Ÿ“– Beginning Python Programming /
Module: List & Collection

list & tuple

๐Ÿ“– Beginning Python Programming / List & Collection / list & tuple

List

sample_list = ["a","b","c","d"]
print(sample_list[-1])

for item in sample_list:
    print(item)

for i, item in enumerate(sample_list):
    print(i, item)