You have a few errors
line 38 should be pygame.quit()
line 49, 51, 53, 55 should be changeTo
line 63, 65, 67 should be = not ==
Just to let you know pygame has builtin colors. all your def colors are builtin.
line 38 should be pygame.quit()
line 49, 51, 53, 55 should be changeTo
line 63, 65, 67 should be = not ==
Just to let you know pygame has builtin colors. all your def colors are builtin.
pygame.Color('red')Builtin colors describe here
99 percent of computer problems exists between chair and keyboard.