Q. What does len(‘Python’) return?

A
5
B
6
C
7
D
Error
Solution:

len(‘Python’) returns 6, counting all characters including the last ‘n’.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!