an if statement to how to end a program in an if statement python Print x is smaller than y x is. There is an exit function with the name sysexit in the Python sys module that can be used wheneve… Saturday, October 22, 2022 Edit