Gold Purification Test | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Gold Purification Test

Hey y’all, so the gold purification quiz has like 7 parts to it or something. But for some reason, I’ve finished the first 3 & can see what the parts are asking for. But the last 4 are “locked” I have 3 of the 4 “locked items” finished, but the last thing I need to finish is locked but Idk what I’m supposed to do to finish since it’s locked. I’ve tried changing my code some but nothing I’ve tried works. What’s the deal here?

3rd Dec 2022, 10:35 PM
Austin Lindquist
Austin Lindquist - avatar
8 Answers
+ 7
What is "not print()" supposed to do? If you don't want to print anything, don't write a print() and leave out the condition.
3rd Dec 2022, 10:37 PM
Lisa
Lisa - avatar
+ 6
Austin Lindquist , thanks for your contribution. please keep in mind: it is not seen as helpful for the op when we are going to post a code, as long as the op has not shown his attempt here. it is helpful to give hints and tips, so that the op has a chance to find a solution by himself. thanks fod your understanding
4th Dec 2022, 7:49 AM
Lothar
Lothar - avatar
+ 1
Alex, valid point. Thanks.
6th Dec 2022, 9:21 PM
Austin Lindquist
Austin Lindquist - avatar
0
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.99: print("22K") if purity >= 99.99: print("24K") if purity < 75: not print()
3rd Dec 2022, 10:35 PM
Austin Lindquist
Austin Lindquist - avatar
0
Yeah, i had just thrown it in there to try it and didnt remove it. Thanks
3rd Dec 2022, 10:39 PM
Austin Lindquist
Austin Lindquist - avatar
0
Op, I'm also stucked at this point I think there's an error with sololearn Cos I opted to check for solution The solution provided by sololearn failed to work Or have you find your way around it?
5th Dec 2022, 3:05 PM
Tosin Joseph, Ogunleye
0
Tosin, yes. I managed to figure it out. I had to google search to see what the last “locked” item was or if i was missing something or if there was an error with the app on my end. I found a code that was similar to what i tried, but slightly different i think. Either way, it seemed to work.
6th Dec 2022, 9:23 PM
Austin Lindquist
Austin Lindquist - avatar
0
Tosin, forgot to mention, i basically ised “elif” instead of strictly “if”
6th Dec 2022, 9:24 PM
Austin Lindquist
Austin Lindquist - avatar