0 оценок0% нашли этот документ полезным (0 голосов)
4 просмотров1 страница
The type() function returns the type of an object. It takes one argument and returns a type object. For example, type(5) returns <type 'int'> as 5 is an integer, and type('5') returns <type 'str'> as '5' is a string.
The type() function returns the type of an object. It takes one argument and returns a type object. For example, type(5) returns <type 'int'> as 5 is an integer, and type('5') returns <type 'str'> as '5' is a string.
The type() function returns the type of an object. It takes one argument and returns a type object. For example, type(5) returns <type 'int'> as 5 is an integer, and type('5') returns <type 'str'> as '5' is a string.