Answer to Question #326287 in Python for sai

Question #326287

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

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


1
Expert's answer
2022-04-09T17:53:10-0400

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS