Page 1 of 1

To retrieve the character at index 3 from string s=”Hello” what command do we execute (multiple answers allowed)?

Posted: Wed Jul 13, 2022 7:44 pm
by answerhappygod
a) s[]
b) s.getitem(3)
c) s.__getitem__(3)
d) s.getItem(3)