python-3.xpygamegame-physicspygame2

i've been trying to make a python snake game with python but i keep on getting "pygame not initialised" error


I've been trying to make a python snake game with python but I keep on getting "pygame not initialized"

Error : code

enter image description here enter image description here


Solution

  • You haven't called pygame.init() anywhere