def gcd(a,b) :

    

    if b>a :

        x = a

        a = b

        b = x


    else :


        c = b

        b = a%b

        a = c 



        return a


while True :   

    try:

            

        a = input("Enter a positive integer(or enter ""q"" to quit): ")

        b = input('Enter another positive integer(or enter ""q"" to quit):')


        if a == 'q':

            break

        elif b =='q':

            break



        print("GCD of is %f" %(gcd(a,b)))

            

    except ZeroDivisi or ValueError :

            print("Error: invalid input was entered")




최대공약수 구하는 코드구여 input 값이 0이거나 음수이거나 string인 경우를 try, except로 걸러내는건데 왜그런지 자꾸 

b = a%b

TypeError: not all arguments converted during string formatting

이렇게 뜨네요 ㅠㅠ 고수 행님들 조언 부탁 드립니다. 필승