Login and get codingComplete
create_parser
below so that our BMI program can be called like this:$ python bmi.py -h usage: bmi.py [-h] [-w WEIGHT] [-l LENGTH] Calculate your BMI. optional arguments: -h, --help show this help message and exit -w WEIGHT, --weight WEIGHT Your weight in kg -l LENGTH, --length LENGTH Your length in cm $ python bmi.py -w 80 -l 187 Your BMI is: 22.88Please note that
calc_bmi
andhandle_args
are given, you only need to codecreate_parser
!
455 out of 466 users completed this Bite.
Will you be Pythonista #456 to crack this Bite?
Resolution time: ~46 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 4.15 on a 1-10 difficulty scale.
» Up for a challenge? 💪