Q. Given are two objects, a list object namely Ist1 and a Series object namely ser1, both are having similar values i.e., 2, 4, 6, 8..

Find out the output produced by following statements:


(i) print (1st1 * 2)

(ii) print (ser1 * 2)


Answer :-

The output produced by given statement (i) will be:

[2, 4, 6, 8, 2, 4, 6, 8]

The output produced by given statement (ii) will be:

0    4
1    8
2    12
3    16


where 0, 1, 2, 3 are the indexes.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post