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?
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")
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?