A simple terminal-based Python program that calculates the Body Mass Index (BMI) using a user's height and weight. Features Runs in the terminal / command prompt Takes user input for height and weight ...
def save_data(name, weight, height, bmi): today = date.today() file_exists = os.path.exists("bmi_data.csv") with open("bmi_data.csv", "a", newline="") as file: writer ...