(a)

What is the length of a?


(b)

How many elements does it contain? What are their types?


(c)

How many integers?


(d)

What does len(a[2]) return?


(e)

What does a[len(a)] evaluate to?


(f)

What does a [-1 * len(a)] evaluate to?



Answer = 

(a)

What is the length of a?

4

(b)

How many elements does it contain? What are their types?

It contain 4 element. 3 integer type & 1 list.

(c)

How many integers?

3 integer

(d)

What does len(a[2]) return?

2

(e)

What does a[len(a)] evaluate to?

It give error.

(f)

What does a [-1 * len(a)] evaluate to?

Output:- 1

1 Comments

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

  1. I didn't understand the answer of (f)

    ReplyDelete

Post a Comment

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

Previous Post Next Post