def sri(d,v): for i in range(d,v): print(i) print(d+v)a=int(input())b=int(input())sri(a,b)
6 9
6 7 8 15
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!