Issue about multiple creation of files in a single repl

Why am I not able to create and execute multiple files in a single repl ?

1 Like

Welcome to the community! You are not able to do this because you only have one console (shell doesn’t count because only people with edit access to the Repl can use it). However, if you go into the hidden file .replit, you can change run = python3 "main.py" (or whatever language you’re using, should be line 2) to something else. However, you also have to find the interpreter part of the code and comment or delete it to make this work.
image
You can’t run multiple things at once, but you could run multiple things in succession, e.g., run = "python3 main.py; python3 second.py; echo Mission Accomplished".

3 Likes