Answers for "python get user input in a single line to list"

0

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()]
Posted by: Guest on March-07-2021

Code answers related to "python get user input in a single line to list"

Python Answers by Framework

Browse Popular Code Answers by Language