Explanation:__getitem(..) can be used to get character at index specified as parameter. 3. To return the length of string s what command do we execute (multiple answers allowed) ?
A. s.__len__()
B. len(s)
C. size(s)
D. s.size()
Answer:A
Explanation:__getitem(..) can be used to get character at index specified as parameter. 3. To return the length of string s what command do we execute (multiple answers allowed) ?
A. s.__len__() B. len(s) C. size(s) D. s.size()
Explanation:Execute in shell to verify. 4. If a class defines the __str__(self) method, for an object obj for the class, you can use which command to invoke the __str__ method.(multiple answers allowed)