numbers = "25 3 12 44 12 21"
numbers = numbers.split(" ")
numbers = [int(x) for x in numbers]
print(numbers)
Вывод - [25, 3, 12, 44, 12, 21]
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
numbers = "25 3 12 44 12 21"
numbers = numbers.split(" ")
numbers = [int(x) for x in numbers]
print(numbers)
Вывод - [25, 3, 12, 44, 12, 21]