Write the output of the given Python code :

#!/user/bin/python

aList = [123, ‘xyz’, ‘zara’, ‘abc’, 123];

bList = [2009, ‘manni’];

aList.extend (bList)

print “Extended List :”, aList;

5 views

1 Answers

This will produce the following result:

Extended List : [123, ‘xyz’, ‘zara’, ‘abc’, 123, 2009, ‘manni’]

5 views