Write a function named findNums() that accepts a string parameter, checks if it has anynumber/numbers. If there

profileadelen
 (Not rated)
 (Not rated)
Chat

 USE PYTHON

Write a function named findNums() that accepts a string parameter, checks if it has anynumber/numbers. If there are no numbers in the String, it should return -1. If there are anynumber/numbers, then it should create a new number that has all the digits in the given String.

For example: findNums("a1b2c3") should return 123

2nd example: findNums("Omega 345. This is Charles 62") should return 34562

3rd example: findNums(“Python”) should return -1

    • 11 years ago
    the answer in python 3
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      find.zip