# Lesson goal: Calculating a tip (with keyboard input)

Previous: Calculate a tip | Home | Next: Distance formula with variables

The tip calculator can be enhanced by asking the user the the meal cost and desired tip using input from the keyboard. You might want to review the input function from an earlier lesson. Here's the base code for doing the tip calculator with some interaction from the user (remember that $tip=per/100\times meal$ given that $per$ and $meal$ are the percentage of tip to leave and cost of the meal, respectively).

# Now you try. Try finishing this tip calculator by finishing in the tip= line.

Show a friend, family member, or teacher what you've done!