I have a problem with the task "New driver's license" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I have a problem with the task "New driver's license"

So, recently i tried to solve a task named "New driver's license" and i used python to do it. The problem is that my code passes 1 and 2 test but it doesn't passes 3 other hidden tests. Could somebody who has already solved it say me what's wrong with my code? P. S. Sorry for the mistakes if they are, cos english is not my native language. https://code.sololearn.com/cl4nbPJ2a9VT/?ref=app

6th Dec 2020, 4:24 PM
Дмитрий Нуждин
Дмитрий Нуждин - avatar
1 Answer
+ 3
Дмитрий Нуждин , why don't you try to calculate it without loop. Look at the code. https://code.sololearn.com/c881BdOR3998/?ref=app
6th Dec 2020, 4:43 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar