Question: Write a Python function that accepts 1 String argument and checks if it has any numeric digits. Name this function getDigits (). If there

Write a Python function that accepts 1 String argument and checks if  

Write a Python function that accepts 1 String argument and checks if it has any numeric digits. Name this function getDigits (). If there are no digits in the String provided, the program should return False. If there are digits in the String provided, then getDigits () should return them as an Integer. If no digits are found the function should return False. Some examples: >>> getDigits ('alb2c3) 123 >>> get Digits ("Omega 345. This is Charles 62"). 34562 >>> get Digits ("Python") False

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 Programming Questions!