HELP?

Karl M. Syring syring at email.com
Sun Feb 3 14:41:39 CET 2002


"Callum Golding" <Rave_Dj at btopenworld.com> schrieb
> I'm sorry to bother you, but i was wondering if you could give me a little
> advice. I've recently downloaded Python 2.2. Ive read a begginers guide to
> programming and tried creating a small program, I used the input function.
> Now as soon as I open the program it goes into dos and asks me the
question,
> and when i type in an anwser, dos shuts down. Now its really starting to
bug
> me. If you could give me some advice I would be real grateful. The program
I
> wrote is below; -
>
>
> tempetature = input("What is the temperature of the spam?")
>
> if temperature > 50:
>     print "The salad is properly cooked"
> else:
>     print "Cook the salad some more"

Spelling error: "tempetature" is distinct from "temperature". And you should
not cook the salad.

Karl M. Syring





More information about the Python-list mailing list