Built-in functions Flashcards

1
Q

type() function

A

Returns the type of the specified object
Syntax: type(object,bases,dict)
only object required

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly