0

Help code coach

Failed x=input() y=int(input()) z=input().split(" ") z.append(x) z.sort result=((z.index(x)+1)*20)//y print (result )

24th Jan 2020, 8:23 PM
Sultan
5 Respuestas
+ 2
Sultan Use Alexandr's hint use this line result=((z.index(x)//y+1)*20) and you should be ok
24th Jan 2020, 9:11 PM
Mihai Apostol
Mihai Apostol - avatar
+ 3
Mihai Apostol thanks for helpAlexandr thank
24th Jan 2020, 9:25 PM
Sultan
+ 2
You're welcome.
24th Jan 2020, 9:27 PM
Mihai Apostol
Mihai Apostol - avatar
+ 1
Which challenge are you attempting?
24th Jan 2020, 8:53 PM
Rik Wittkopp
Rik Wittkopp - avatar
0
Code coach driving licences
24th Jan 2020, 8:55 PM
Sultan