Q.

What will be the output of the following
Python statement?
>>>"abcd"[2:]

A. a
B. ab
C. cd
D. dc
Answer» C. cd
Explanation: slice operation is performed on string.
945
0
Do you find this helpful?
1

Discussion

No comments yet