DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python check if number is integer or float
>>> x = 12 >>> isinstance(x, int) True >>> y = 12.0 >>> isinstance(y, float) True
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#check
#number
#integer
#float
ADD COMMENT
Topic
COMMENT
Name
4+8 =
Submit