6 Respuestas
+ 4
print([c for c in input() if c.isnumeric()])
+ 1
import re
output = map(int,re.findall(r'\d+',string))
0
Hi, thank you so much,
By the way, do you how to use import while we're coding
0
Like import function, I'm kinda confused on this
0
Ok thanks
- 1
For c in string:
If type(c)== int:
Output.append(c)