Determining if a number is an integer or a decimal in Python https://from-locals.com/python-check-int-float/