import pygame class Shelf: def __init__(self, x, y): self.x = x self.y = y self.products = [] def add_product(self, product): self.products.append(product) def get_product(self): return self.products[0] def get_coordinates(self): c = [self.x, self.y] return c def is_empty(self): if len(self.products) == 0: return True else: return False