Relative Content

Tag Archive for pythonstringlistdata-cleaningcode-cleanup

Shorten my script when iterating through a list

In this code it takes the first part of the string as a name then iterates through the different strings and prints out the name, BMI, and category of it. How do I shorten this script, or clean it up to make it better and more efficient? Is there perhaps a function that would be useful in this situation? I’m trying to gain more knowledge in data cleaning by the way.