and if you have time could you help me with my interpretor. The problem is that it will not stay open for some of my programs. When i doubleclick on some .py file it closes straight away.
the below code works fine:
print "Enter a number, press <enter>, enter another and press <enter> again"
first = input()
print "X"
second = input()
print "="
print first*second
raw_input("Press <enter>")
but:
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."
raw_input("Press <enter>")
does not work. python closes as soon as it opens. It seems to be something to do with the last line but as you can see im very new to this and i am already stuck. thanks in advance.