From e22ac1060bb9f37ac1714f71776f5106b15abc5e Mon Sep 17 00:00:00 2001 From: sayampradhan <112542130+sayampradhan@users.noreply.github.com> Date: Fri, 14 Oct 2022 23:25:51 +0530 Subject: [PATCH] Format Code --- 1_snake_game/2_using_object_oriented_programming.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/1_snake_game/2_using_object_oriented_programming.py b/1_snake_game/2_using_object_oriented_programming.py index 69c2e15..0a288d0 100644 --- a/1_snake_game/2_using_object_oriented_programming.py +++ b/1_snake_game/2_using_object_oriented_programming.py @@ -3,6 +3,7 @@ import pygame from pygame.locals import * + class Snake: def __init__(self, surface): self.parent_screen = surface @@ -63,8 +64,7 @@ def run(self): elif event.type == QUIT: running = False -if __name__ == '__main__': + +if __name__ == "__main__": game = Game() game.run() - -