Pregunta de entrevista de Canonical

Write a code that follows the python best practices.