2K Magic | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

2K Magic

purity = float(input()) if purity > 99.9: print("24K") elif purity > 91.7: print("22K") elif purity >= 83.3 and 9.17: print("20K") else: print("18K") #your code goes here Goodluck:)))

1st Aug 2021, 3:19 AM
Winalif Sabarudin
2 Answers
+ 4
Hi Winalif! Yes, your solution is correct. But your second elif statement has something that is useless here. You can comment it or remove it.
1st Aug 2021, 4:37 AM
Python Learner
Python Learner - avatar
0
Heyy, may i know you medsos? Or cp?
1st Aug 2021, 4:42 AM
Winalif Sabarudin