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

[ad_1]

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


>>> s="12 14 17"

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

[ad_2]

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