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 | Sololearn: Learn to code for FREE!

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

9/1/2021 2:37:16 AM

Ghassan Sawalha

2 Answers

New Answer

+3

Hi Ghassan! You don't even have to use the second if statement . purity = float(input()) if purity >= 91.7 : print ("Accepted")

0