Python Data Type - List [ ' abcd ', 786 , 2.23, 'john', 70.2 ] 0 1 2 3 4 x = [ ' abcd ', 786 , 2.23, 'john', 70.2 ] y = [123, 'john'] print(x) # Prints complete list print (x[0]) # Prints first element of the list print (x[1:4]) # Prints elements starting from 2nd till 4 th print (x[1:4:2]) # Prints elements starting from 2nd till 4th print (x[2:]) # Prints elements starting from 3rd element print (y * 2) # Prints list two times print (x + y) # Prints concatenated lists Output ['abcd', 786, 2.23, 'john', 70.2] abcd [786, 2.23, 'john'] [786, 'john'] [2.23, 'john', 70.2] [123, 'john', 123, 'john'] ['abcd', 786, 2.23, 'john', 70.2, 123, 'john'] [ 'abcd', 786 , 2.23, 'john', 70.2 ] 0 1 2 3 4 National Institute of Electronics & Information Technology Ministry of Electronics & Information Technology ( MeitY ), Government of India Gorakhpur Center