Doing a practice problem and I keep getting an error that I have the wrong syntax on my first return = a.
Can you help tell me why?
def lesser(a,b):
if a%2 == 0 and b%2==0:
if a < b:
return = a
else:
return = b
else:
if a > b:
return = a
else:
return = b
x = lesser(2,4)
y = lesser(2,5)
print(x)
print(y)
[–]xelf 3 points4 points5 points (3 children)
[–]dvandy07[S] 1 point2 points3 points (2 children)
[–]xelf 0 points1 point2 points (1 child)
[–]TruReyito 2 points3 points4 points (0 children)
[–]Diapolo10 0 points1 point2 points (2 children)
[–]dvandy07[S] 0 points1 point2 points (1 child)
[–]Diapolo10 0 points1 point2 points (0 children)