How to Make a Tip Calculator In Python

preview_player
Показать описание
This video covers how to create a basic tip calculator in the python programming language!

A basic tip is determined by what percent of a tip you want to leave, as a proportion of the total bill! In order to create this function we need to gather user input asking for the desired tip percentage as well as the bill cost before tip. We then call a function to perform the tip math and display the outputs in a formatted f-string combining variables with strings!

This is a great beginner tutorial and if you're looking to use beginner python skills in creating applications, games and fully functionality utilities be sure to check out the rest of the channel!

Let us know with any questions, comments, concerns or ideas for a future video!

Thanks for watching and be sure to like and subscribe for more great content!
Рекомендации по теме
Комментарии
Автор

Am learning and one of the exercises was to build a tip calc and I was getting stuck until I came across your video, superb job, I have subbed, liked and commented and will go through all your other material. You are obviously very fluent with Python and I thank you for your great work.

alfredwunder
Автор

Awesome job! I'd be interested in another video reading in a existing .csv budget file and then manipulating it into python to automate a monthly budget.

RyanYarbrough
Автор

What if i wanted to add data validation to each inputed response. so if someone typed words instead of numbers. or entered 0 instead of >0 because of party size ect.

andenschmitt