Q.What does each of the following expressions evaluate to? Suppose that L is the list


["These", ["are", "a", "few", "words"], "that", "we", "will", "use"].


(a) L[1][0::2]

(b) "a" in L[1] [0]

(c) L[:1] + L[1]

(d) L[2: :2]

(e) L[2][2] in L[1]


You can understand by Watching video :-




Answer =

(a) ["are", " few"]
(b) True
(c) ["There ", "are ", "a ", "few ", "word"]
(d) ["that ", "will"]
(e) True

1 Comments

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

  1. good but think it to update for making the websites more clutterless you need remove extra content and ads

    ReplyDelete

Post a Comment

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

Previous Post Next Post