+ 1
New Driver License проблема с решением
name = input() amount = int(input()) names = input().split() let = [] for i in names: let.append(i0]) let.append(name[0]) let.sort() char = let.index(name[0]) print(int((char+1)*20//amount)) Вот мой код, но он не проходит скрытые тесты 3 и 5.
1 Resposta
+ 3
check statement:
let.append(i0]) in this statment '0]' unnecessary.
corrected statement is:
let.append(i)
Fixed code:
I added some logic to your code
https://code.sololearn.com/cY6Ovam4316U/?ref=app