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:
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
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
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: ")
>
>
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