Skip to content

natnew/Python-Projects-Calorie-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Python-Projects-Calorie-Calculator 🐍

This repo contains python code that generates the sum total of your calorie intake for a given day.
Run the code.

Python

#this is a calorie counter python program

date = input("What day is it today: ")
print(date)
breakfast = input("How many calories did you have for breakfast? ")
print(breakfast)
lunch = input("How many calories did you have for lunch? ")
print(lunch)
dinner = input("How many calories did you have for dinner? ")
print(dinner)
snack = input("How many calories did you have for your snack? ")
print(snack)

sum = int(breakfast) + int(lunch) + int(dinner) + int(snack)

print(f"Calorie content for {date}: {sum}")

Output

What day is it today: Tuesday
Tuesday
How many calories did you have for breakfast? 100
100
How many calories did you have for lunch? 200
200
How many calories did you have for dinner? 100
100
How many calories did you have for your snack? 50
50
Calorie content for Tuesday: 450

About

Python Projects Calorie Calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages