How 2 invoke python 2 read from text file under W2k

Hernan M. Foffani hfoffani at yahoo.com
Sun Dec 16 19:30:19 CET 2001


Define a function and call it later. like:

def cooked_or_raw():
    temperature = input("What is the temperature of the spam?")
    if temperature > 50:
        print "The salad is properly cooked."
    else:
        print "Cook the salad some more."

cooked_or_raw()

regards,
-Hernan







More information about the Python-list mailing list