0
Importing our own modules in Python
In the code playground, is it possible to write a code and then import it in another code on code-playground? Say I wanted to write some utility functions and then just be able to import them in my other codes instead of rewriting it each time.
4 Respuestas
+ 2
Cbr✔[ Most active ] Actually, you can.
https://code.sololearn.com/cyQ5Uyxz82o8/?ref=app
+ 1
Diego That’s really cool, but I was kind of hoping it would be a four lines or less kind of thing. Once it’s more than that, I may as well just copy and the repeated code.