Pybites Logo

Starwars character with highest bmi

Level: Intermediate (score: 3)

In this Bite you will parse a multiline string of SWAPI Starwars characters.

Calculate the BMI of each character returning a (person, BMI) tuple of the character that has the highest BMI.

The BMI calculation is the same as Bite 56: float(mass) / ((int(height) / 100) ** 2).

The provided data contains 3 columns separated by comma: person, height, and mass.

Have fun and keep calm and code in Python!