title: Keyboard interrupt crashes my code in python
body: <p>I am a new programmer, and even though I just used ctrl c while writing my code to copy paste some code. But after that, my code stops running due to keyboard interrupt. My code is compiled and has no errors. Please Help. I tried it another time without ctrl c in a different file but it shows the same error.</p>
  <pre><code>filename = input('Enter Project Name: ')
  codeLine = input(filename + '&gt;')
  varDict = {}
  varList = []
  constDict = {}
  constList = []
  codeLine = codeLine.strip()
  codeLineList = codeLine.split()
  while True:
      if codeLine.endswith(&quot;;&quot;):
          codeLine = codeLine.rstrip(codeLine[-1])
          if len(codeLineList) == 2:
              if codeLineList[1] == &quot;is&quot;:
                  varName = (codeLine.split(&quot;is&quot;)[0]).strip()
                  varValue = (codeLine.split(&quot;is&quot;)[1]).strip()
                  varDict[varName] = varValue
                  print(varDict)
  </code></pre>
  <p>and I am getting the following result.</p>
  <pre><code>Enter Project Name: hi
  hi&gt;i is k;
  </code></pre>
  <p>nothing seems to happen after that. When I debugged the code, I found this error:</p>
  <pre><code>
      Traceback (most recent call last):
        File &quot;C:/Users/ajgameboy/PycharmProjects/mylang/main.py&quot;, line 9, in &lt;module&gt;
          codeLine = input(fileName + &quot;&gt;&quot;)
      KeyboardInterrupt
      Process finished with exit code -1073741510 (0xC000013A: interrupted by Ctrl+C)
  
  </code></pre>