"Shurui Liu (Aaron Liu)" <shuru...@gmail.com> wrote
In Python, could space be counted as a character same as a letter?

In Python the fastest and most certain way to answer such questions is to try it at the >>> prompt.

len('ab cd')   # is it 4 or 5?
5

HTH,

--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to