Angelo
0
Q:

how to take input in python3 separated by space

# Reads two numbers from input and typecasts them to int using  
# map function 
x, y = map(int, input().split()) 
3
_input = input() # Get input
_input = "thing1 thing2, thing3"
space_split = _input.split() # ["thing1", "thing2,", "thing3"]
comma_split = _input.split(",") # ["thing1 thing2", "thing3"]
1
l = list(map(int,input().split())
0
inp = list(map(int,input().split())) 
0

New to Communities?

Join the community