Pregunta de entrevista de Infosys

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