Simplify Python

2010-04-06 Thread ja1lbr3ak
I'm trying to teach myself Python, and so have been simplifying a calculator program that I wrote. The original was 77 lines for the same functionality. Problem is, I've hit a wall. Can anyone help? loop = input("Enter 1 for the calculator, 2 for the Fibonacci sequence, or something else to quit:

Re: Simplify Python

2010-04-06 Thread ja1lbr3ak
On Apr 6, 4:06 pm, Christopher Choi wrote: > On Tue, 06 Apr 2010 12:04:20 -0700, ja1lbr3ak wrote: > > I'm trying to teach myself Python, and so have been simplifying a > > calculator program that I wrote. The original was 77 lines for the same > > functionality. Proble

Re: Simplify Python

2010-04-06 Thread ja1lbr3ak
On Apr 6, 4:17 pm, Christopher Choi wrote: > On Tue, 06 Apr 2010 13:14:44 -0700, ja1lbr3ak wrote: > > On Apr 6, 4:06 pm, Christopher Choi wrote: > >> On Tue, 06 Apr 2010 12:04:20 -0700, ja1lbr3ak wrote: > >> > I'm trying to teach myself Python, and so have b

Re: Simplify Python

2010-04-06 Thread ja1lbr3ak
On Apr 6, 4:56 pm, Joaquin Abian wrote: > On Apr 6, 9:04 pm, ja1lbr3ak wrote: > > > > > > > I'm trying to teach myself Python, and so have been simplifying a > > calculator program that I wrote. The original was 77 lines for the > > same functionality