list()
40 while True:
41 x = random.randint(0, SCREEN_SIZE-1)
42 y = random.randint(0, SCREEN_SIZE-1)
43 if list([x, y]) not in self.snake.tolist(): 44 break
45 self.fruit = np.array([x, y])
46
Object is being type casted to the same type. This is unnecessary.