Solve problem "Previous and next" online - Learn Python 3 - Snakify

Previous and next


Statement

Write a program that reads an integer number and prints its previous and next numbers. See the examples below for the exact format your answers should take. There shouldn't be a space before the period.

Remember that you can convert the numbers to strings using the function str.

Advertising by Google, may be based on your interests

In all the problems input the data using input() and print the result using print().