import pygame object1 = pygame.Rect((20, 50), (50, 100)) object2 = pygame.Rect((10, 10), (100, 100)) object3 = pygame.Rect((0, 0), (50, 50)) object4 = pygame.Rect((100, 100), (30, 50)) list = [object4, object3, object2] print(object1.collidelist(list))