I am no longer able to run python code and interact with it in the console window. My terminal closed and there doesn’t seem to be an option to reopen it, only a shell. When I use the run button, a console window opens and nothing happens.
Expected vs Current Behavior:
The console or terminal opens and I can type in a call function to interact with my code. What happens, nothing.
Steps to reproduce:
This is all that happens so reproducing it is easy. I hit RUN and nothing happens.
Bug appears at this link: https://replit.com/~?supportform=true
Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/184.108.40.206 Safari/537.36
Replit Profile: https://replit.com/@icorpsgeoint
Repl Link: https://replit.com/@icorpsgeoint/Python
Previously when I would use the RUN button it would open a terminal or a console that I could interact with and now nothing happens.
I think nothing was supposed to happen because all you did was store things in the memory, none of which was printed or written on the screen. Try writing some print statements to see if it works.
Can you confirm that it is not doing anything at all? If you see another thing pop up in the console but no output, it just means your code is yielding no result.
The intent is for this to interact with the terminal user. For instance:
x = Current (“Charles”, 500) - hit enter
print(x) - information is displayed
I saw some other code files, so they might have imported and initialized them in another file.
For context - This is for “The Python Bible” course on Udemy. I am just following along with the video because I’m unable to install standard python on my work computer.
main.py file is empty. By default, Replit runs the
main.py when you click the Run button. If you want to change that, edit the
entrypoint value in the
.replit file. Otherwise, put some code in the
main.py because it’s empty rn:
If you don’t want to edit the Run button’s action, just run each file manually by opening the Shell tab and typing
python bank.py or
Thank you! This at least got me into the shell that I can interact with. Now I just need to figure out the syntax error I’m getting when trying to define the variable like x = Current(“Charles”, 500) then say print(x). Thank you for the help!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.