prog9_4.py

stations = []
while True:
    station = input("駅名?")
    if station == "":
        break
    stations.append(station)
stations_tuple = tuple(stations)
print(stations_tuple)

# プログラム9-4(駅名をタプルに集める ①:リスト版)