fork download
  1. name = input()
  2. number_of_guests = int(input())
  3. cost_per_pizza = float(input())
  4.  
  5. pizzas = int((number_of_guests * 0.5))
  6. total = pizzas * cost_per_pizza
  7.  
  8. print(f"Hello {name}, for {number_of_guests} guests, the cost will be {total}.")
  9.  
Success #stdin #stdout 0.09s 14132KB
stdin
Dario
4
2
stdout
Hello Dario, for 4 guests, the cost will be 4.0.