+ 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?
10 ответов
+ 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.
+ 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
+ 1
Alex, valid point. Thanks.
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()
0
Yeah, i had just thrown it in there to try it and didnt remove it. Thanks
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?
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.
0
Tosin, forgot to mention, i basically ised “elif” instead of strictly “if”