Brainiac11 / My-Projects

Unused variable found PYL-W0612
Anti-pattern
Major
a year agoa year old
Unused variable 'tail'
 66      self.fitness += 10
 67      self.place_fruit()
 68    else:
 69      tail = self.snake[-1] 70      self.snake = self.snake[:-1, :]
 71
 72    self.snake = np.concatenate([[new_head], self.snake], axis=0)
Unused variable 'alphabet'
 4
 5stringOne = input("Please enter a string: ")
 6def transform_string():
 7    alphabet = "abcdefghijklmnopqrstuvwxyz" 8    alphaLength = [1, 2, 3, 4, 5, 6, 7 ,8 ,9 ,10 ,11 ,12 ,13 ,14 ,15 ,16 ,17 ,18 ,19 ,20 ,21 ,22 ,23 ,24 ,25 ,26]
 9    if stringOne in alphaLength:
10        print(stringOne)