Solve the programming task below in a Python markdown code block.
Given a string s, write a method (function) that will return true if its a valid single integer or floating number or false if its not.

Valid examples, should return true:

should return false:
Also feel free to reuse/extend the following starter code:
```python
def isDigit(string):
```