def instructiacons (): print "This outlines the program" print "User input required for boiling point discovery" print "please input a the observed boiling point of your liquid" print "the program will analize this and return a liquid that has a boiling point within 5%" print "+ or - of the expected boiling point." def within_x_percent(x): if x < 106 and x > 94: print "your liquid is water" elif x < 376 and x > 339: print "your liquid is Mercury" elif x < 1247 and x > 1126: print "you liquid is copper" else: print False instructiacons() I = float(raw_input("enter the observed boiling point").strip()) within_x_percent(I)