+ 4

Why doesn't Sololearn PRO fully resolve my code?

Three of the tests are correct, three are not correct, which are hidden. So, I can't see where my error is. Please, help me. https://code.sololearn.com/cg2eebgA2EB2/?ref=app

19th Jan 2022, 11:28 AM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
3 ответов
+ 5
Brian ,Thanks. It is working fine now.
19th Jan 2022, 12:42 PM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
+ 2
for j in snaks: if j in snaks: # j always in the snaks
19th Jan 2022, 11:35 AM
FanYu
FanYu - avatar
+ 2
Egor Tonchev(EGO) What is k, and where is it assigned? If "Lettuce" is one of the acceptable snacks, then you should correct the spelling from "Lettuse".
19th Jan 2022, 12:33 PM
Brian
Brian - avatar