This has to do with how CodeWars verifies solution. It (presumably) imports the module you wrote and then calls the function from that module. Instead of writing the function repeat_str yourself, you just import mul with the name repeat_str. When the verification program then calls repeat_str, it calls mul instead. Does that help?
I still dont get how does an import interact with the variabeles and the function, what ik import does nothing until used so thats where my confusion is
This has to do with how CodeWars verifies solution. It (presumably) imports the module you wrote and then calls the function from that module. Instead of writing the function repeat_str yourself, you just import mul with the name repeat_str. When the verification program then calls repeat_str, it calls mul instead. Does that help?
I still dont get how does an import interact with the variabeles and the function, what ik import does nothing until used so thats where my confusion is
@1989andres: yes.
In noob: it means that minimum or maximum are a reference to a function, right?
lmao
This comment is hidden because it contains spoiler information about the solution
I don't get it, can someone explain pls
This comment is hidden because it contains spoiler information about the solution
how it works? ik its a tuple but how min and max are working like methods and without argument
Wow this was great! Very clever
Very clever, made me laugh!
Please use a spoiler flag. Read the doc if you don't know how import works.
This comment is hidden because it contains spoiler information about the solution
that is definitely clever
haha! clever!
Loading more items...