Wednesday, January 31, 2007

Python class.

http://www.python.org/
Go there, download python, run this.

N = raw_input("What is your name? ")
o = input("First integer?")
t = input("Second integer?")
print "thank you,",N,"the sum of",o,"and",t,"is:",o+t

The output should be something like this:
What is your name? Scout
First integer? 3
Second integer? 4
Thank you, Scout the sum of 3 and 4 is: 7

I just wrote that in the class I am currently posting from.
I finished first! It rocked!
It was funny cause I'm in a class with all upperclassmen and they were asking me for help.

8 comments:

jedimerc said...

I have Python on my computer, for a gaming source program (some online rpg scripting program I think). I just am not using my machine at the moment since it is being stowed at Josh's place while I am over here at the folks.

Scout said...

Well use it!

jedimerc said...

boobies :)

Scout said...

boobies!!!!!!!!!!!!!!

jedimerc said...

:) Hey, sorry I couldn't call last night...wound up hanging out with my brother and ran a little long, so I will try and catch up with you tonight :)

Scout said...

It's okay. I'll call you tonight?

jedimerc said...

Should be no problems... I don't forsee going anywhere this time.

jedimerc said...

Ok, this comment is to remind you to check out my Nerdiness Survey/Interview :)