things you can improve for this specific use case:
- prints in line 5-9 could be print("...", num1 ... num2) {replace triple dots accordingly}
- catch the exception raised when the input is not a number {try run your code and give any string as input}