#Title: number.py #Author: Adam Payne #Date: 25/06/2026 #Version: 2 #Purpose: Ask the user for a whole number. If the number is smaller or equal to 10, then double it, otherwise half it, and display the results. Let the user know the program has ended. number = int(input('What is your number (Whole number)? ')) ans = number * 2 ans2 = number / 2 if number <= 10: print(f'Your number doubled = {ans}') if number > 10: print(f'Your number divided by 2 = {ans2}') print("The program has ended")