-
Notifications
You must be signed in to change notification settings - Fork 2
Solution/final project #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,16 +212,16 @@ | |
dinner_fat = (foods["salmon"][3] * qty_salmon / 100) + (foods["quinoa"][3] * qty_quinoa / 100) + (foods["spinach"][3] * qty_spinach / 100) + (foods["olive oil"][3] * qty_oil / 100) | ||
print(f"Total Dinner macros: protein {dinner_protein:.0f}g | carbs {dinner_carbs:.0f}g | fat {dinner_fat:.0f}g\n") | ||
|
||
total_protein_day = breakfast_protein + snak_protein + lunch_protein + dinner_protein | ||
total_carbs_day = breakfast_carbs +snak_carbs + lunch_carbs + dinner_carbs | ||
total_fat_day = breakfast_fat + snak_fat + lunch_fat + dinner_fat | ||
total_protein_day = int(breakfast_protein + snak_protein + lunch_protein + dinner_protein) | ||
total_carbs_day = int(breakfast_carbs +snak_carbs + lunch_carbs + dinner_carbs) | ||
total_fat_day = int(breakfast_fat + snak_fat + lunch_fat + dinner_fat) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. making an explicit cast from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. among all the |
||
|
||
print("-" * 60) | ||
print(f"The amount of macronutrients for the day is: ") | ||
print("-" * 60) | ||
print(f"\n- Protein: {total_protein_day:.0f}g") | ||
print(f"- Carbs: {total_carbs_day:.0f}g") | ||
print(f"- Fat: {total_fat_day:.0f}g\n\n") | ||
print(f"\n- Protein: {total_protein_day}g") | ||
print(f"- Carbs: {total_carbs_day}g") | ||
print(f"- Fat: {total_fat_day}g\n\n") | ||
|
||
|
||
print("*" * 60) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file should not be committed, make attention to what is added and, if there are file to not be considered, add them to the .gitignore to avoid to push them eventually in others commit