0

You’re making a gold purity checker, that should accept only 22K or 24K gold. Only the good stuff! 22K gold has 91.7% or more

purity = float(input()) if purity >= 91.7 : print ("Accepted") if purity >= 99.9 : print("Accepted")

1st Sep 2021, 2:37 AM
Ghassan Sawalha
Ghassan Sawalha - avatar
2 Answers
+ 3
Hi Ghassan! You don't even have to use the second if statement . purity = float(input()) if purity >= 91.7 : print ("Accepted")
1st Sep 2021, 2:41 AM
Python Learner
Python Learner - avatar
0
Thanks
1st Sep 2021, 2:42 AM
Ghassan Sawalha
Ghassan Sawalha - avatar