Re: Issue converting to string to integer.

2013-06-02 Thread Chris Angelico
On Mon, Jun 3, 2013 at 11:52 AM, Dan Sommers wrote: > On Sun, 02 Jun 2013 18:12:33 -0700, Fdama wrote: > >> I combined the int conversion and the input on the same line, rather >> than to have two different statements. But got an error message: > >> Traceback (most recent call last): >> File "C:

Re: Issue converting to string to integer.

2013-06-02 Thread alex23
On Jun 3, 11:12 am, Fdama wrote: > I combined the int conversion and the input on the same line, rather than to > have two different statements. But  got an error message: > > Traceback (most recent call last): >   File "C:\Users\Faisal\Documents\python\pizza_slicer.py", line 23, in > >     sta

Re: Issue converting to string to integer.

2013-06-02 Thread Dan Sommers
On Sun, 02 Jun 2013 18:12:33 -0700, Fdama wrote: > I combined the int conversion and the input on the same line, rather > than to have two different statements. But got an error message: > Traceback (most recent call last): > File "C:\Users\Faisal\Documents\python\pizza_slicer.py", line 23, in

Re: Issue converting to string to integer.

2013-06-02 Thread Dan Stromberg
On Sun, Jun 2, 2013 at 6:12 PM, Fdama wrote: > Hi, > > I was following an exercise in a book when I edited the code and came > across something I did not get. Here is the relevant part of the code that > works: > > start=None #initialise > while start !="": > start=input("\nStart: ") > >

Issue converting to string to integer.

2013-06-02 Thread Fdama
Hi, I was following an exercise in a book when I edited the code and came across something I did not get. Here is the relevant part of the code that works: start=None #initialise while start !="": start=input("\nStart: ") if start: start=int(start) finish=int(in