0

I want multiple inputs only in 1 line

n = int(input())
for i in range(n):
    d = map(str,input())
print(d)
flyingfox
  • 13,414
  • 3
  • 24
  • 39
Daniel
  • 1
  • 1
  • this might work: `d = [int(input("...")) for _ in range(n)]`. but it may not be a good idea... what if `int` fails? any why would you want that in one line? what is the benefit? – hiro protagonist Nov 19 '22 at 08:10

0 Answers0