ChamplainTechJournals/python-csi160/week02/Week-2Practice-Problems/part3.py
2025-04-19 23:42:08 -04:00

7 lines
297 B
Python

# 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))