I am just learning programming, in python.. watching the "programming foundation:fundamental" course from linkedin. although in the beginning it seems easy regarding the function of return statement. But I do not understand the function/duty of return in this code. and the code seems really complex to me. can anyone explain please, what is happening here in the code.
What is the output of the following program?
def isEven(num):
return num % 2 == 0
if isEven(3):
print("3 is even")
else:
print("3 is not even")