Calculating BMI
Завдання
Swipe to start coding
Given dictionary person with three keys: name, weight, and height. Your tasks are:
- Add new value to
persondictionary with keybmiand 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 apersonby respective key. - You need to apply
.format()method toinfostring passingpersondictionary as an argument and print the result.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 5
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Suggested prompts:
Сумаризуйте цей розділ
Пояснити код у file
Пояснити, чому file не вирішує завдання
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
persondictionary with keybmiand 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 apersonby respective key. - You need to apply
.format()method toinfostring passingpersondictionary as an argument and print the result.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 5
single