Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

A Personal Achievement

Name: Anonymous 2006-10-15 17:47

Congratulate me, folks! I just wrote my first program.

name = raw_input("Name: ")
print "Hello",name,"!"
lastname = raw_input("And your Last Name: ")
print "I'm very pleased to meet you,",name, lastname,"!"
middleinitial = raw_input("Do you have a Middle Initial? ")
print "So your full name is:",name,middleinitial,lastname,"?"
favnum = input("Do you have a Favorite Number? ")
favnum2 = input("Can you give me a Random Number? ")
print favnum*favnum2,"is the product of multiplying those numbers together! Isn't math fun?"

Not bad for a first attempt, eh?

Name: Anonymous 2006-10-16 11:41

>>4
It's not __Pythonic__, thus it fails.

If you want it to be Pythonic (you don't, go learn Ruby instead), sprinkle underscores randomly and use that horrid comment thingy.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List