Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Successor and Predecessor!
- n1 = int (input ('Enter a number: '))
- ant = n1 - 1
- suc = n1 + 1
- print ('The {}SUCCESSOR{} of {} is {}!' .format('\033[4;35m', '\033[m',n1, suc))
- print ('The {}PREDECESSOR{} of {} is {}!' .format('\033[4;34m', '\033[m',n1, ant))
- #by Estéfani =D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement