0

I want to know why this code doesn't work properly: it should break when the input not 1 ,2 or 3

while True:
        try:
            aw = int(input('Number : '))

            if aw in [1,2,3] == False:
                print('give Number agian')
            else:
                print('correct')
                break

        except ValueError:
            print('please give a number')
Ahmet
  • 65
  • 7

0 Answers0