Why this code is wrong??
I'm wrong in part two and three of this code, but I can't understand. def add(): a = input('Enter your car name: ') car_name.append(a) def remove(car_name): if car_name in car_name: car_name.remove(car_name) else: print('You do not have this car!!!') def show(): for car in car_name: print('Car name = ', car) select = None car_name = [] while select != 4: select = int(input('''1 : show cars list 2 : join cars 3 : remove cars 4 : exit What do you want? ''' )) if select == 1: show() elif select == 2: add() print('added') elif select == 3: car_name = input('enter your car name: ') remove(car_name)