[Solved] How to convert a string filled with numbers to seperate integers in a list? [duplicate]


You can split the string , then convert each elements to int –


>>> s="12 14 17"

>>> list(map(int,s.split()))
[12, 14, 17]
>>> 

solved How to convert a string filled with numbers to seperate integers in a list? [duplicate]