def y(x):
if x < -4:
return x + 5
if x <= 7:
return x**2 - 3 * x
return x**3 + 2 * x
k = int(input())
print(y(k))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def y(x):
if x < -4:
return x + 5
if x <= 7:
return x**2 - 3 * x
return x**3 + 2 * x
k = int(input())
print(y(k))