Tom Ritchford
Jun 1, 2023

--

You can do a bit better, in two ways. The list conversion in the first line is redundant: the * expansion works even on an iterator.

More important, map is basically deprecated in favor of comprehensions and generator expressions:

it = (int(i) for i in input.split())
print(*it)

--

--

No responses yet