#try to avoid input function a = 7 for i in range(2,a+1): print((i**3)+1,end=",")
Click the run button. Try to avoid input() function.