

McqMate
Q. |
To return the length of string s what command do we execute? |
A. | s. len () |
B. | len(s) |
C. | size(s) |
D. | s.size() |
Answer» A. s. len () | |
Explanation: execute in shell to verify. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet