Answer to Question #194443 in Python for Thotla Thirupathi

Question #194443

Input : A2b34ce - - > [2,34]

Output : A34b2ce - - > [34,2]


1
Expert's answer
2021-05-18T02:58:38-0400
import re
inputValues= input()
numbers=[int(v) for v in re.findall(r'\d+', inputValues)]
print(numbers)




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS