← BYTES
Python·Starter·Ref: 6.1.6

What does `len("hello")` return?

Have a question about this video? Mention reference 6.1.6 when you contact us.

a.4
b.True
c."hello"
d.5
`len()` on a string returns its character count -- "hello" has 5 characters, so this returns 5.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES616#Python