You are not calling the function with integer numbers at all, but with strings. If this is in a program where you are getting the numbers by using the input() function, wrap input's call in a call to int. For example: value = int(input("type the first number: "))
I think @jsbueno is right about your error; in the future, you should include all of your code (or enough to fully reproduce the problem), including the code that calls this function, where the parameters to this function come from, and where you print the result.
bandabefore callinggcdfor the first timeinput()function, wrap input's call in a call toint. For example:value = int(input("type the first number: "))