Получите ввод на той же линии Python
n = 2 # how many numbers to accept
numbers = [int(num) for num in input().split(" ", n-1)]
print(numbers)
Troubled Teira
n = 2 # how many numbers to accept
numbers = [int(num) for num in input().split(" ", n-1)]
print(numbers)