BMI Calculator by tm4rtin17 · Pull Request #544 · wasmerio/Python-Scripts
#BMI Calculator
Summary
- Added an interactive BMI Calculator script.
Description
Created an interactive script that serves as a BMI Calculator.
The changes are as follows:
- Added BMI Calculator
Checks
in the repository
- Made no changes that degrades the functioning of the repository
- Gave each commit a better title (unlike updated README.md)
in the PR
- Followed the format of the pull_request_template
- Made the Pull Request in a small level (for the creator's wellfare)
- Tested the changes you made
Thank You,
Thomas Martin
| def list_all_expenses(): | ||
| global connector, table | ||
| # Clears the current table display and reloads all records from the database | ||
| global connector, table |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not good practice to use global variables because its going to be hard to debug and mantain.
if you want you can pass it in the function parameters list_all_expenses(connector)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters