List Get a Element 1

List Get a Element

a = ["more", 4, 6]
print(a[1])
# prints 4

Here is what the above code is Doing:
1. We create a list called a.
2. We print the second element of the list.
3. We print 4.

Similar Posts