> Newbie here who can't figure out why this doesn't work:

> start = input("Please enter the starting number.\n>")
> print(type(start))
> while type(start)!=float:
>     start = input("Sorry, that number was invalid.\nPlease enter the
starting number.\n>>")
>     print(type(start))

Google to the rescue. Try this:
while not isinstance(start, float)


Alan

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

Reply via email to