(02-04-2010, 06:53 PM)Kharnage Wrote: There is no value if I type "no" instead of "yes"
Well thought you can do it alone
edit: but go with uber1337's code, I think it's more what you're looking for
Code:
#!usr/bin/env python
temp = raw_input("What's the Temperature? ")
water = raw_input("Is the Water salted? ")
if water == "yes" :
if int(temp) <= -10:
print "Water freezes"
else:
print "No, It's not cold enough!"
elif water == "no":
print "Do the magic here!"