price = int(input("購入額は?")) if price: print(f"{price}円のレシートです!") else: print("レシートは出ません") # プログラム5-23(レシートの有無)