Software Engineering · Beginner · 50 points · about 30 min
Write a small Python program that works out a restaurant tip. It is your first program that takes input and gives output.
Stuck? Open a hint. Try the first one before the next.
bill = float(input("Bill amount: ")) reads a number from the user.
The tip is bill * percent / 100.
round(value, 2) rounds to 2 decimal places.
Put the conversion inside try/except ValueError to show the friendly message.
A Python program that asks for a bill and a tip percentage, then prints the tip and the total.
Python, input and output, arithmetic, error handling
A strong submission runs without errors, gives correct amounts, handles bad input kindly, and has a README that shows how to run it.