Run code from another file in python
TheImagin33r (18)

So my program is supposed to be like
if ans == 16:


the underlined part is where i want to put the code to run code from another file in the project called "game_code.py" its all in python

You are viewing a single comment. View All
Answered by ash15khng (304) [earned 5 cycles]
View Answer
TheImagin33r (18)

@ash15khng when i do "import game_code" it just thinks im trying to import something as if i was doing like "import time"