#try to avoid input function a = int(input("Enter start value :")) b = int(input("Enter end value :")) c = int(input("Enter increment/decrement value :")) li = [int(x) for x in range(a,b+1,c)] print(li)
Click the run button. Try to avoid input() function.