# 1, 3, 9, 27,,,でどうだろう A = [] temp = 1 for i in range(9): A.append(temp) temp *= 3 print(*A)