Print the numbers assigned to the list values in python 1

Print the numbers assigned to the list values in python

list = ['i','n','l','a','r','n']print(list[0])print(list[4])

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

Similar Posts