02-04-2010, 07:01 PM
(02-04-2010, 06:56 PM)Master of The Universe Wrote: Well thought you can do it aloneLol I don't think he knows about Python, otherwise he would code such an easy program by himself, and I doubt he has any interest in learning it, due to his urgent need to get this program by tonight.
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!"