Pergunta de entrevista da empresa ZenCity

Python question - understanding a given piece of code that normalizes data.