Calculating BMI
Завдання
Swipe to start coding
Given dictionary person
with three keys: name
, weight
, and height
. Your tasks are:
- Add new value to
person
dictionary with keybmi
and valueweight/height**2
. - Create pattern named
info
"name weight is weight kg, height is height m. BMI is bmi". Everything there written in italics is the value of aperson
by respective key. - You need to apply
.format()
method toinfo
string passingperson
dictionary as an argument and print the result.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 5
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 4.35Awesome!
Completion rate improved to 4.35
Calculating BMI
Завдання
Swipe to start coding
Given dictionary person
with three keys: name
, weight
, and height
. Your tasks are:
- Add new value to
person
dictionary with keybmi
and valueweight/height**2
. - Create pattern named
info
"name weight is weight kg, height is height m. BMI is bmi". Everything there written in italics is the value of aperson
by respective key. - You need to apply
.format()
method toinfo
string passingperson
dictionary as an argument and print the result.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 5
single
Awesome!
Completion rate improved to 4.35
Calculating BMI
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Given dictionary person
with three keys: name
, weight
, and height
. Your tasks are:
- Add new value to
person
dictionary with keybmi
and valueweight/height**2
. - Create pattern named
info
"name weight is weight kg, height is height m. BMI is bmi". Everything there written in italics is the value of aperson
by respective key. - You need to apply
.format()
method toinfo
string passingperson
dictionary as an argument and print the result.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!