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