Pergunta de entrevista da empresa Tech Mahindra

Basic Python syntax. Questions on sorting, lists.