Answers for "data type of a function in python"

0

type in python

numbers_list = [1, 2]
print(type(numbers_list))

numbers_dict = {1: 'one', 2: 'two'}
print(type(numbers_dict))

class Foo:
    a = 0

foo = Foo()
print(type(foo))

                       Output

<class 'dict'>
<class 'Foo'>
<class '__main__.Foo'>
Posted by: Guest on October-11-2020
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

Code answers related to "data type of a function in python"

Python Answers by Framework

Browse Popular Code Answers by Language