a,b,c,d = map(int,input().split(",")) if (b-a==d-c): for i in range(1,5): print(i,end=" ") print(d+(d-c)*1) else: if (c/b == d/c): for j in range(0,5): print(int(pow((b/a),j)),end=" ")
會不會是 split中間的逗號?
然後其實else下面不需要寫if條件,因為如果他不是正比就一定會是等比