DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to take n space separated input in python” Code Answer’s
N = 5 num = [int(i) for i in input().split()][:N] print(num) # Output: [1, 2, 3, 4, 5]
Source by codethebrain.com #
PREVIOUS
NEXT
Tagged:
#space
#separated
#input
#Code
ADD COMMENT
Topic
COMMENT
Name
6+7 =
Submit