Better Python3 Interpreter
SvenDeveloper (21)

I saw a repl from someone else who made a python Interpreter. That project is bad, so I made a better one :)

You are viewing a single comment. View All


if prompt == "exit":
  x = 0

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