Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Python

Hi there What is wrong with this code purity = float(input()) if purity >= 75 and purity < 83.3: print("18k") if purity >= 83.3 and purity < 91.7: print("20k") if purity >= 91.7 and purity < 99.9: print("22k") if purity > 99.9: print("24k") And how can I learn more about Python

5th Oct 2022, 9:47 PM
Taher Ahmed Taher
Taher Ahmed Taher - avatar
3 Answers
+ 2
if purity >= 99.9:
5th Oct 2022, 10:32 PM
Solo
Solo - avatar
+ 1
It works fine for me what issues are you having?
5th Oct 2022, 10:36 PM
Chris Coder
Chris Coder - avatar
0
To learn more continue with the python courses.
5th Oct 2022, 10:18 PM
Chris Coder
Chris Coder - avatar