Answers for "how to define values types to variable in python"

1

python variable type

# type(name_of_variable):

x = 7.0

print(type(x))
# <class 'float'>
Posted by: Guest on July-13-2021

Code answers related to "how to define values types to variable in python"

Python Answers by Framework

Browse Popular Code Answers by Language