Run
x = lambda n: n**2 if n%2 == 0 else n**3 print(x(4)) print(x(3))
Output