I have code that outputs only numbers, but it outputs them one at a time. Example. 222 is output as ['2.0', '2.0', '2.0'] also if the number is 2.32, output as ['2.0', '3.0', '2.0']. I need it to output them together, how do I do that? thanks for the help
x = input("text: ")
m = []
for i in x:
if i.isdigit():
m.append(float(i))
print(*m)