Built-in functions Flashcards
1
Q
type() function
A
Returns the type of the specified object
Syntax: type(object,bases,dict)
only object required
2
Q
id() function
A
id() function returns a unique id (address) for the specified object
The id is the object’s memory address, and will be different for each time you run the program (except for some object that has a constant unique id, like integers from -5 to 256)
3
Q
A