0
HELP!!!! I keep failing the 3 & 4 case in the New Driver License challenge. The link to my code is in the description.
5 Réponses
+ 2
Can you give me your code please
Because that link for the code couch
+ 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))
+ 1
Thanks guys.
0
Done