Stepping Numbers - Py

MEDIUM PYTHON

Problem Description
Given A and B you have to find all stepping numbers in the range A to B.

The stepping number:
A number is called as a stepping number if the adjacent digits have a difference of 1.
e.g. 123 is a stepping number, but 358 is not a stepping number.

Example Input
Input 1:

A = 10
B = 20
Example Output
Output 1:

10 12

Example Explanation
Explanation 1:
All stepping numbers are 10 , 12 

Your Input:
50 71
A = 50, B = 71

Please note the formatting of the output.


Submit Answer

NOTE These questions can be solved in either Java , Python , Rust, C++, Go or ! However, the language intended for these questions is mentioned along with the question on the top. You need to submit the solution file for the autograder to grade the submission. If you are submitting in Java, make sure that the class name is Main (with a capital M)


Optional Python Editor for your use