0

How to take n space separated integer input in a list in python?

18th Oct 2019, 2:26 PM
Prem Sagar
Prem Sagar - avatar
2 Answers
+ 4
Hi. Use input().split(). If you want integers list(map(int, input().split()))
18th Oct 2019, 2:31 PM
Dmytro Novak
Dmytro Novak - avatar