Mar-22-2024, 04:16 PM
Look at str.split() This can be used to split a str like this:
Output:0 10 7 1 6 4
Int a list of str like this:Output:['0', '10', '7', '1', '6', '4']
Then you can convert the individual number strings to ints like you are already doing in your program.