[英] float in 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))
{[argument_index_or_keyword]:[width][.precision][type]}
a_int = 24
#this is a int
a_float = 3.2883
#this is a float. you can see that it has a difference. it has a . :)