Answers for "python repl change main file that runs with run"

1

run a lua file other than main in repl

#create a file named .replit and type code in the following format

language = "< preferred language>" 
run = "name of file to run"
Posted by: Guest on October-08-2020
1

run a file other than main in repl

#main.py
import os
os.system('python3 <filename>.py')
Posted by: Guest on October-08-2020

Browse Popular Code Answers by Language