How do I select the first word of a variable?[CODE=python]
name = raw_input("What 's your full name? ")
print "Hey, %s, how you doing?" % name[/CODE]
So say I only wanted it to print the first name? How would I do this not knowing the amount of letters in it?
name = raw_input("What 's your full name? ")
print "Hey, %s, how you doing?" % name[/CODE]
So say I only wanted it to print the first name? How would I do this not knowing the amount of letters in it?
Comment