Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how many data types are specified to numeric values in python

There are three numeric types in Python:

1) int
2) float
3) complex

#for example 
x = 1    # int
y = 2.8  # float
z = 1j   # complex
print(type(x))
print(type(y))
print(type(z))
 
PREVIOUS NEXT
Tagged: #data #types #numeric #values #python
ADD COMMENT
Topic
Name
4+4 =