Challenge: Split the Bill
Completed
Friends are sharing a restaurant bill. Read the bill amount and the number of people, then print how much each person pays, rounded to 2 decimal places.
Input
Line 1: the bill (may have decimals). Line 2: number of people.
Output
Each person pays: <amount>
Example
Input
1200 4
Output
Each person pays: 300.0
Editor
Python
Hints
Use float() for the bill and int() for the people.
round(value, 2) keeps two decimal places.
Solution explanation
Divide the bill by the number of people and round to 2 places with round(..., 2).
Show solution
bill = float(input())
people = int(input())
print("Each person pays:", round(bill / people, 2))