Answers for "variable type in python"

1

python type of variable

# type(name_of_variable):

x = 7.0

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

python data types

Text Type:	str
Numeric Types:	int, float, complex
Sequence Types:	list, tuple, range
Mapping Type:	dict
Set Types:	set, frozenset
Boolean Type:	bool
Binary Types:	bytes, bytearray, memoryview
Posted by: Guest on November-07-2020

Python Answers by Framework

Browse Popular Code Answers by Language