Unknown mistake : A small game that guesses numbers, but there are the following errors in pycharm, opening with IDLE is no problem. May I ask what is the reason?

[enter image description here][1]


[enter image description here][2]


[enter image description here][3]


  [1]: https://i.stack.imgur.com/PdZGu.png
  [2]: https://i.stack.imgur.com/LR3FB.png
  [3]: https://i.stack.imgur.com/WxUxl.png