Words and numbers
Write functions that:
- can find all the numbers in a sentence;
- find all words shorter than 3 in a sentence;
- can find all the numbers in a sentence longer than 15;
- count all the words in a sentence;
- count all numbers in a sentence.
Use this sentence to test:
I saw 3 bears, and 7 toads in 50 meters from the tallest tree in the park.
But use other sentences to test it as well, like:
I saw 5 fish, and 8 squid in 100 meters from the biggest boat in the sea.