Python I-Scheme Prelims Paper[1]
Python I-Scheme Prelims Paper[1]
i. >>> a = [2, 5, 1, 3, 6, 9, 7 ]
>>> a [ 2 : 6] = [ 2, 4, 9, 0]
>>> print (a)
ii. >>> b = [ “Hello” , “Good” ]
>>> b. append ( “python” )
>>> print (b)
iii. >>> t1 = [ 3, 5, 6, 7 ]
>>> print (t1 [2])
>>> print (t1 [–1])
>>> print (t1 [2 :])
>>> print (t1 [:])