How To Check If A String Is An Integer Or Float In Python?

How To Check If A String Is An Integer Or Float In Python?