Restaurant Bill
Beginner · Write the code · from Python for Beginners: Your First Program in 5 Minutes
From the lesson: Python for Beginners: Your First Program in 5 Minutes
Have you ever wondered how apps like Instagram, Spotify, or YouTube actually work? Behind every app, website, and game, there's code - instructions written by a person telling the computer what to do.
Read the lessonA meal costs $24.50, tax is $2.45, and the tip is $5.00. The variables are already created for you.
Calculate the total and print it in this exact format:
Total: $31.95meal = 24.50
tax = 2.45
tip = 5.00
# Calculate the total and print it
More for Beginners exercises
- Print a GreetingBeginner
- Personal IntroductionBeginner
- Fix the Bug: Broken CalculatorBeginner
All Python exercises · 50 practice problems · Python Fundamentals quiz