There is a line:
'45 30 55 20 80 20 '.
You must create an array of numbers included in this line:
[45, 30, 55, 20, 80, 20].
I thought for a long time and only came to this code, but it does not work:
for i in range(len(q)): if q[i]!=(' '): e+=q[i] else: w.append(int(e)) e='' print(w) the problem is that the last 20 he does not see, please help