Report Bug
Qus : If wd="Hello World" then which of the following statements will display last five characters of the string object?
QusIf wd="Hello World" then which of the following statements will display last five characters of the string object?

A. wd[4:]
B. wd[:4]
C. wd[-5:]
D. wd[:-4]


Solution
C. wd[-5:]






Report Bug