Using sololearn's playground for python, how can I access a class from another file and use it in the main file. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Using sololearn's playground for python, how can I access a class from another file and use it in the main file.

I create a file. In that file I create data type using class and object. How can I access it in my present file because I tried but it didn't work with sololearn

28th Jul 2020, 6:07 PM
Akinbola Emmanuel Oluwanifemi
Akinbola Emmanuel Oluwanifemi - avatar
2 Antworten
+ 2
Unfortunately, that is not possible on SoloLearn. You have to include the class within the same file if you want it to run on SoloLearn Compiler.
30th Jul 2020, 4:17 AM
Edward Finkelstein
Edward Finkelstein - avatar
+ 1
Alright. Thanks for responding.
30th Jul 2020, 2:08 PM
Akinbola Emmanuel Oluwanifemi
Akinbola Emmanuel Oluwanifemi - avatar