how to call object of a list python 1

how to call object of a list python

L = [1, 2, 3, 4]
print(L[1]) ## Calls the index position of the list "L"

Here is what the above code is Doing:
1. We create a list called “L”
2. We print the index position of the list “L”

Similar Posts