Solve problem "Series - 2" online - Learn Python 3 - Snakify

Series - 2


Given two integers A and B. Print all numbers from A to B inclusively, in ascending order, if A < B, or in descending order, if A ≥ B.

In all the problems input the data using input() and print the result using print().