Perhaps because preNumber is a character and not an integer?

Robert

Dotan Cohen wrote:
I was missing the quotes in the if statement. Changing
if preNumber[0] == 0:
to
if preNumber[0] == "0":
fixed the problem.

Why did I need those quotes? The 0 is numerical, so it should not need
the quotes, no?

  
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to