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.

Tests Input Correct answer 179 The next number for the number 179 is 180. The previous number for the number 179 is 178.

0 The next number for the number 0 is 1. The previous number for the number 0 is -1.

100 The next number for the number 100 is 101. The previous number for the number 100 is 99.

## How to solve this problem?

How to solve this problem? https://snakify.org/en/lessons/print_input_numbers/problems/previous_and_next/

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.

Tests

Input Correct answer

179 The next number for the number 179 is 180.

The previous number for the number 179 is 178.

0 The next number for the number 0 is 1.

The previous number for the number 0 is -1.

100 The next number for the number 100 is 101.

The previous number for the number 100 is 99.

@MdAlAminAlAmin : You have to wrap all of the number variables in an str function, like this: