do you guys help newbies??

John Hunter jdhunter at ace.bsd.uchicago.edu
Wed Nov 27 07:50:05 EST 2002


>>>>> "malik" == malik m <malik_martin at hotmail.com> writes:

    malik> hi yea i messed up here's the code sorry about the html too
    malik> i was using it through hotmail while i learnd and still am
    malik> learning how to use newsgroups....

One more thing to watch out for.  When you posted your code, the lines
were automatically wrapped, making your code unrunnable without
editing.

Now, onto the problem!

You need to convert the raw input to a numeric type, as in 

  md = int(raw_input("Miles driven: "))

raw_input comes back as a string.

John Hunter




More information about the Python-list mailing list