Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

float python

# Floats are basically decimal numbers
# Make sure you don't mix Floats with Ints (Integers)

# For example (a float):
list_of_floats = [2.4, 99.99, 12.4444448812827122151]

# For example (an int):
list_of_ints = [1, 491, 1821, 2198, 128]


# If you have a mental breakdown and you can't find the difference between them
# Just use the type() method/function

# Example:
print(type(2.9))
print(type(751))
 
PREVIOUS NEXT
Tagged: #float #python
ADD COMMENT
Topic
Name
1+7 =