stations = () while True: station = input("駅名?") if station == "": break stations += (station,) print(stations_tuple) # プログラム9-5(駅名をタプルに集める ②:累算代入版)