how can i get 2 inputs in singal line seprated by space code example
Example: how can i get 2 inputs in singal line seprated by space
x, y = input().split()
Note that we don’t have to explicitly specify split(‘ ‘)
because split() uses any whitespace characters as a delimiter as default.