title: I'm making the snake game in Python3 and keep getting this Error: name 'Tk' is not defined what should I do?
body: <p>I'm trying to make a snake game on Python 3 and keep getting this error when trying to use the TK module for the snake game. In my coding I'm only on the first stage of the coding of the game so I haven't done much but I just wanted to use the TK module and it wasn't really working I'm not sure what to do. It would be really helpful if someone could answer this question.</p>
  <pre><code>GAME_WIDTH = 700
  GAME_HIGH = 700
  SPEED = 50
  SPACE_SIZE = 50
  BODY_PARTS = 3
  SNAKE_COLOUR = &quot;#00FF00&quot;
  FOOD_COLOUR = &quot;#FF0000&quot;
  BACKGROUND_COLOUR = &quot;#000000&quot;
  
  
  class snake:
      pass
  
  class food:
      pass
  
  def next_turn():
      pass
  
  
  def change_direction(new_direction):
      pass
  
  def check_collisions():
      pass
  
  def game_over():
      pass
  
  
  window = Tk()
  window.title(&quot;Snake Game&quot;)
  window.resizable(False,False)
  window.mainloop()
  </code></pre>