# Read an integer: number = int(input('Enter a number:\n')) # Print output for next and previous that matches the instructions print("The next number for the number " + str(number) + " is " + str(number + 1)) print("The previous number for the number " + str(number) + " is " + str(number - 1))