Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Import a Project from another, python

0 votes
asked Jan 15, 2019 by Geilomat 3000 (130 points)
edited Jan 17, 2019 by Geilomat 3000
Hi,

I'm using Python3 and I'd like to split all my modules from one project into multiple others, without losing the ability to import from each other. I wanted to ask if this is possible in OnlineGDB.

Thanks

Edit: I already tried: " import ProjectName.ModuleName " and " import ModuleName from ProjectName "

1 Answer

+1 vote
answered Jan 18, 2019 by Admin (5,100 points)
In same project you can write multiple files.
Example is at https://onlinegdb.com/rkPS3C0zV
But you can't import module from another project which are saved in your "My Project" section.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...