0

HELP!!!! I keep failing the 3 & 4 case in the New Driver License challenge. The link to my code is in the description.

https://code.sololearn.com/cP0l7iZv2Ixp/?ref=app

16th May 2020, 5:55 PM
Olufemi Tofunmi
Olufemi Tofunmi - avatar
5 Antworten
+ 2
Can you give me your code please Because that link for the code couch
16th May 2020, 5:56 PM
ycsvenom
ycsvenom - avatar
+ 1
Olufemi Tofunmi This will help you I have change the footer of your function import math my_name = input() num_agent = int(input()) people_arnd = input() people_arnd = people_arnd.split(" ") def how_lng(my_nm, nums, pple_rnd): pple_rnd.append(my_nm) pple_rnd = sorted(pple_rnd) for i in range(len(pple_rnd)) : if pple_rnd[i]==my_name : if num_agent<=5: return math.ceil((i+1)/num_agent)*20 else: return math.ceil((i+1)/5)*20 print(how_lng(my_name, num_agent, people_arnd))
16th May 2020, 6:58 PM
ycsvenom
ycsvenom - avatar
+ 1
Thanks guys.
16th May 2020, 7:12 PM
Olufemi Tofunmi
Olufemi Tofunmi - avatar
0
Done
16th May 2020, 6:03 PM
Olufemi Tofunmi
Olufemi Tofunmi - avatar