0
Guys ive made a solution to a challenge buh i dont know how to make it accept test input from solo leaen
Licencd challenge
3 ответов
+ 3
Hi Kith!
I didn't try this challenge yet. But, I can see your solution is correct.
But, the problem is that prompt messages aren't accepted in Sololearn practices since they're not in expected output.
So, you can remove your prompt messages inside input().
Always, remember you can't print 'hello world' if they required to print only 'hello'. In this challenge, You have to print the number of minutes that it will take to get your license.(here i)
You can remove other print statements and check it again.
print(i)
+ 2
Just type the input inside the prompt that appears. Note that multiple inputs require multiple lines.
0
def licence(name, workers, others):
name = name.lower()
names = others.split(' ')
names.append(name)
names = [n.lower() for n in names]
names = sorted(names)
print(names)
i = (names.index(name) + 1)
print('i ',i)
l = workers
if i > l:
if i%l != 0:
g = (i//l) + 1
else:
g = (i//l)
else:
g = 1
print(g*20)
name = input('name ')
workers = int(input('workers '))
others = input('others ')
licence(name, workers,others)