Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started