How to check if a string is int or float in Python?

How to check if a string is int or float in Python?

More to explore

Based on this image's title: “How to check if a string is int or float in Python?