Ask coding questions

← Back to all posts
How to close python 3 external repl tab?
SamuelZaniewski (0)

I am trying to make it so if they say end game then the external repl tab will close itself because i am trying to make a python 3 text based RPG chose your own adventure game. https://repl.it/@SamuelZaniewski/ZaniewZork

Answered by a5rocks (513) [earned 5 cycles]
View Answer
Commentshotnewtop
a5rocks (513)

You can't control the browser (that would be scary), but you can import sys and run sys.exit()

SamuelZaniewski (0)

@a5rocks Thank you so much! Wish that was possible because this is my code window that runs it as its own tab and i want to exit that :\ tinyurl.com/ZaniewZork