0

Python Course Not Letting Me continue

In my python course, basic, for Boolean and if statements im tying to finish a lesson but it wont let me continue even though im getting the answer right. Its about measuring gold purity. Code is supposed to Output "Accepted" if >= a certain float and no Output if <. Here is my code purity = float(input()) if purity >= 91.7: print("Accepted") if purity >= 99.9: print("Accepted") if purity != 91.7: print() if purity != 99.9: print() There is only one problem case where i cant see what the output was and its locked. I just want to finish this subject and move on to another

14th Nov 2021, 11:23 PM
Eric Freeman
Eric Freeman - avatar
1 Resposta
+ 2
Remove all if only leave first. Your task is to check if purity is more or equal than 91.7 And read again how if and nesting works, to understand better
15th Nov 2021, 1:14 AM
PanicS
PanicS - avatar