Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

To retrieve the character at index 3 from string s=”Hello” what command do we execute ?

a) s[]
b) s.getitem(3)
c) s.__getitem__(3)
d) s.getItem(3)

Answer: c
Explanation: __getitem(..) can be used to get character at index specified as parameter.

Join The Discussion