Support Forums

Full Version: Is there a fuction that make x equal to the amount of letters in hello?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a fuction that make x equal to the amount of letters in hello?
(10-11-2009, 12:04 PM)nevets04 Wrote: [ -> ]Is there a fuction that make x equal to the amount of letters in hello?

Do you mean something like x = len('hello')
yea it's would be done like this.

Quote: x = raw_input ("Enter your word or string")

print len(x)

Tongue