The question is: Write a function named remainder() that has two parameters named num1 and num2. The function should return the remainder of twice num1 divided by half of nym2.
I wrote:
def remainder(num1, num2):
return (num1*2)/(num2/2)
It wasn’t working so I switch the / to % and it worked, my question is why isn’t the / working in this context?