what is the output of this code if the input is 8.
valid = false
while not valid:
    try:
            n=int(input("enter a number"))
            while n%4==0:
                    print("BK")
            valid = true
    except ValueError:
            print("invalid")

Posted on by