https://docs.python.org/3/library/argparse.html
https://docs.python.org/3/howto/argparse.html
Testing healthy lifestyle index:
- Write your name [optional];
- Choose your gender: male, female [optional, choices];
- Write your height (cm);
- Write your weight (kg);
- How much do you usually sleep? Less than 7 hours; 7-8 hours (1 point); More than 8 hours;
- How many meals does your daily diet include? 1 meal, 2-3 meals, 4-5 meals (1 point);
- How many fresh fruits and vegetables do you eat during the day? I do not eat these products regularly, Less than 500 grams, More than 500 grams (1 point);
- How many steps do you walk on average per day? Less than 5 thousand steps, 5-10 thousand steps, More than 10 thousand steps (1 point);
- Do you monitor your health? Not; Yes, I have been undergoing medical examination in the last 3 years (1 point), Yes, but I do not see a doctor;
- What is your mood today? Good (1 point), Neutral, Bad [choices];
- When was the last time you had a state of happiness? During the week (1 point), During the month (1 point), During the year.
- BMI (Body Mass Index) is calculated: BMI = body weight / height * height. BMI from 18.5 to 24.9 corresponds to 1 point.
The maximum value of the healthy lifestyle index: 8 units. Depending on the result your python script should print out a message:
8 points Your index of a healthy lifestyle is 8/8, which means that you are a true leader in a healthy lifestyle! [5-7] points Your health index is [5-7]/8, which means that you are on the right track! [0-4] points Your healthy lifestyle index is [0-4]/8 🤢, you need to rethink your healthy lifestyle!