python - Check if a number is int or float - Stack Overflow

PHOTO EMBED

Sun Apr 18 2021 14:59:32 GMT+0000 (Coordinated Universal Time)

Saved by @arielvol

isinstance(n, (int, long, float)) 
content_copyCOPY

https://stackoverflow.com/questions/4541155/check-if-a-number-is-int-or-float/50437093