0

Please help with the if function.

I’m doing the pure gold project and on line 2 and 3 I put this: purity = float(input()) if >= 91.7: if <= 99.9: print("Accepted") Why does it say invalid syntax for line 2?

27th Apr 2021, 6:51 PM
Joshua Roper
Joshua Roper - avatar
2 Antworten
0
Joshua Roper You need to learn how to do comparison. There is syntax issue. With which variable you are comparing value 91.7? See the correct syntax: purity = float(input()) if purity >= 91.7: if purity <= 99.9: print("Accepted")
27th Apr 2021, 7:05 PM
A͢J
A͢J - avatar
0
what is >= than 91.7 ?? what is <= than 99.9 ?? is it correct to say: if taller, he could reach the roof. WHO IS TALLER?
27th Apr 2021, 8:01 PM
iTech
iTech - avatar