What is the output of print(len('Python')) in Python?
print(len('Python'))
Correct answer
D. 6
5 views
D. 6
5 views
len() counts the characters in the string.
Asked in: Python Interview Strings
https://docs.python.org/3/library/stdtypes.html#string-methodsNot sure why the answer is D? Ask here and get an explanation.