prog9_17.py

products = {}
while True:
    name = input("商品?")
    if name == "":
        break
    price = input("値段?")
    products[name] = int(price)
    print(f"商品一覧:{products}")
print("終了しました!")

# プログラム9-17(商品と値段の一覧 ①)