Pergunta de entrevista da empresa Infosys

how to make a for loop in python in one line.