Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to take input for list in one line in python

# Reads two numbers from input and typecasts them to int using 
# map function 
x, y = map(int, input().split()) 
 
PREVIOUS NEXT
Tagged: #input #list #line #python
ADD COMMENT
Topic
Name
4+1 =