You dont need that, as when they type in exit(), it will automatically terminate the entire program. You also dont need if while x == 1:, as it will also be terminated when exit() is typed in. Because you no longer need x, you can remove x = 1 as a variable
I saw a repl from someone else who made a python Interpreter. That project is bad, so I made a better one :)
remove:
You dont need that, as when they type in
exit()
, it will automatically terminate the entire program. You also dont need ifwhile x == 1:
, as it will also be terminated whenexit()
is typed in. Because you no longer need x, you can remove x = 1 as a variable