I want to have a string, for example I want to type in 'I have 2 dogs' and I want the shell to return True
(A function will do) if a number is shown in the string.
I found it so hard to code without using any loops and without any 're' or 'string' library.
Any help please?
Example:
input: "I own 23 dogs"
output: True
input: "I own one dog"
output: False