I was looking for a simple code like this.
here's one I made
Code:
x=input ("is your water salted or pure?")
y=input ("what is the temperature?")
if x=="salted" and y>= -10:
print "the water will not freeze"
elif x=="salted" and y< -10:
print "the water will freeze"
elif x=="pure" and y>= 0:
print "the water will not freeze"
elif x== "pure" and y< 0:
print "the water will freeze"
here's one I made
Code:
x=input("Is the water salted?<yes/no>")
y=input("What is the temperature?")
if x=="no" and y>=0:
print "the water will freeze"
elif x=="yes" and y>10:
print "the water will freeze"
else:
print "the water will not freeze"