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 
# list comprehension 
x, y = [int(x) for x in input().split()] 
 
PREVIOUS NEXT
Tagged: #input #list #line #python
ADD COMMENT
Topic
Name
9+3 =