Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there a fuction that make x equal to the amount of letters in hello?
#1
Is there a fuction that make x equal to the amount of letters in hello?
Reply
#2
(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')
Slackware 13/ArchLinux - C/Assem/Python
Reply
#3
yea it's would be done like this.

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

print len(x)

Tongue
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Your Favorite Fuction? nevets04 1 729 10-14-2009, 05:49 PM
Last Post: Fallen

Forum Jump:


Users browsing this thread: 1 Guest(s)