Comment prendre n espace séparé entre les réponses du code Python
N = 5
num = [int(i) for i in input().split()][:N]
print(num)
# Output: [1, 2, 3, 4, 5]
Excited Earthworm
N = 5
num = [int(i) for i in input().split()][:N]
print(num)
# Output: [1, 2, 3, 4, 5]