1.Split the bill
BeginnerA dinner costs 1850 rupees and 4 friends split it equally. Print each person's share with exactly two decimal places, like Each person pays 462.50.
Show hint
/ always gives a float. Format it with an f-string: f"{value:.2f}".
Show solution
total = 1850
people = 4
share = total / people
print(f"Each person pays {share:.2f}")Each person pays 462.50