Print the numbers assigned to the list values in python

Print a value in list python programming language. This program will print the exact value which is initialized previously in python. The initialized value in the list values can be printed in the output as programmers wish. 

The following methods can be used to print a list in Python: Using a loop for: The typical approach is to go from 0 to len(list) and display each element of the list one by one using a for loop. Without the use of loops: The * sign is used to print the elements of the list in a single line with space between them.

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

 

Output:

i

r