def count(current,last): if (current <= last): print(current) current = current + 1 count(current,last) return() def start(): first = 1 last = int(input("Last number in the series: ")) count(first,last) start()