#try to avoid input function a = 10 b = "" for i in range(a,0,-1): b = b+" "+str(i) print(i,end=" ")## if it doesn't work.Use b print(b)
Click the run button. Try to avoid input() function.