Does len() function also count “space”?

Does len() function also count “space”?

1 Like

Yes, len counts everything.

yes,space is also counted

yes, space is a character too.

1 Like

len(“space”) = 5,

len(“s p a c e”) = 9

hope this clears. (:slight_smile:

1 Like