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.

22nd Aug 2019, 2:18 AM
Rora
2 Respostas
22nd Aug 2019, 2:54 AM
Diego
Diego - avatar
+ 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.
22nd Aug 2019, 11:10 AM
Rora