hello dear all - new to repl-it. love it as it seems ot be a great approach to a online-ide.
one question though:
cannot run code that i have added to a folder.. .see the image
see here the account - and the folders that i have created
question is: how to run the code that is in adress_book2
it does not work - i cannot run this code .
did i miss something.. plz lemme know and set me straight
thanks in advance
You need to add the .py extension for a file to be read as a Python file. Then, you can run it from main.py (or other) by doing
import adress_book2 (Don't include the .py when using import).
Also, you can import files from a folder by doing
Please mark my comment as the answer if it helped you. Thanks!