n= int(input())
print ('The next number for the number', n,'is',str(n+1)+'.')
print ('The previous number for the number',n,'is',str(n-1)+'.')
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Самый простой вариант такой:
n= int(input())
print ('The next number for the number', n,'is',str(n+1)+'.')
print ('The previous number for the number',n,'is',str(n-1)+'.')