Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f(x):
- if x < -3:
- return 2 * x - 1
- if x == -3:
- return 0
- if x > -3:
- return 3 * x ** 2 + 6 * x - 5
- if __name__ == "__main__":
- x = int(input("x="))
- print(f(x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement