Question #326287

[int(input()) for _ in range(n)]

in this line how we are using for loop aside of input() function can you explain


Expert's answer

This instruction creates a list of n integers that it reads from a user.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS