Hi guys!! Please help me solve this error in test cases. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Hi guys!! Please help me solve this error in test cases.

https://www.sololearn.com/coach/18?ref=app Here is my code in this: https://code.sololearn.com/cCmaZYH6Q6lz/?ref=app I really have no idea why the code is not passing one test case. Someone please help me in solving this😞

12th Jan 2020, 6:53 PM
Nicky
Nicky - avatar
3 Answers
+ 2
Try after sort list this instead several 'if' p=l.index(name) if p in range(group): print(20) else: print(p//group*20+20)
12th Jan 2020, 7:31 PM
Alexey Rubtsov
Alexey Rubtsov - avatar
+ 6
hey... muuuuuuuch tooooo complicated. Did u understand the example? Looks for me like not. put some comments on it.
12th Jan 2020, 7:24 PM
Oma Falk
Oma Falk - avatar
+ 3
Alexey Rubtsov this is working.thanks😊
13th Jan 2020, 3:39 AM
Nicky
Nicky - avatar