+ 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 ответов
+ 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