Categories
How to enter two different variables separated by a space in python?
Enter two numbers separated by a space. It is necessary that the first goes into one variable, and the second goes into another variable.
Answer the question
In order to leave comments, you need to log in
a, b = input().split()
a, b = (int(i) for i in input().split())
a, b = map(int, input().split())
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question