Skip to content
repl process died unexpectedly
Profile icon
shlobb13

could someone help with this error msg? TIA

import sys

while True:
print('Type exit to exit.')
response = input()
if response == 'exit':
sys.exit()
print('You typed ' + response + '.')

You are viewing a single comment. View All
Profile icon
[deleted]

Like the others said, that isn't an error messages. That just means the repl process died before it thought it was supposed to. It does that to me pretty much any time I use a sys.exit() command.