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
2 Answers
New Answerpurity = float(input()) if purity >= 91.7 : print ("Accepted") if purity >= 99.9 : print("Accepted")
9/1/2021 2:37:16 AM
Ghassan Sawalha2 Answers
New AnswerHi Ghassan! You don't even have to use the second if statement . purity = float(input()) if purity >= 91.7 : print ("Accepted")
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message