Re: [Tutor] n00b question: dictionaries and functions.

2006-04-12 Thread Danny Yoo
On Wed, 12 Apr 2006, Jesse wrote: > def add(): >x = float(raw_input("Enter a number: ")) >y = float(raw_input("And a second number: ")) >print x + y > def subtract(): >x = float(raw_input("Enter a number: ")) >y = float(raw_input("And a second number: ")) >print x - y > >

Re: [Tutor] n00b question: dictionaries and functions.

2006-04-12 Thread Bob Gailer
Jesse wrote: > Hey, this should be an easy question for you guys. I'm writing my > first program (which Bob, Alan, and Danny have already helped me > with--thanks, guys!), and I'm trying to create a simple command-line > interface. I have a good portion of the program's "core functions" > alrea

[Tutor] n00b question: dictionaries and functions.

2006-04-12 Thread Jesse
Hey, this should be an easy question for you guys. I'm writing my first program (which Bob, Alan, and Danny have already helped me with--thanks, guys!), and I'm trying to create a simple command-line interface. I have a good portion of the program's "core functions" already written, and I want to c