Categories
Is it possible to display an element of a list by index?
Hello, is there a method in python to print an element of a list by its index.
Answer the question
In order to leave comments, you need to log in
a = [1, 2, 3, 4] print(a[0]) 1
l1st = [1, 2, 3, 4] print(l1st[1]) # Вывод: 2
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question