Question: Write in python program Given a string of any length, extract the numbers (digits) and print them on one line without spaces. Hint 1: start

Write in python program

Given a string of any length, extract the numbers (digits) and print them on one line without spaces. Hint 1: start with an empty string Hint 2: isdigit() is a very helpful method. Your program should have a function that does this work. Examples: Input: some 1! likes 2 put 14 digits, in 3 strings 12143 Input: this is great!!11!!!eleven!1!1! 1111 Input: l33t 5p33ch 1o1 3353311 Input: nope, nothing t0 see here 0 Input: beverly hills 90210 90210

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!