How to Print Adjacent Numbers of a Number in Python

Prompt

Result