x = int(input('Введите цифру: '))
print('The next number for the number', x, 'is', x +1)
print('The previous number for the number', x, 'is', x - 1)
Ввод:
179
Вывод:
The next number for the number 179 is 180 .
The previous number for the number 179 is 178 .