Pergunta de entrevista da empresa Qvantel

Basic question on python, along with syntax.