#python #sicp
The built-in type function allows us to inspect the class of any
value
If you want to change selection, open document below and click on "Move attachment"
2.1 Introductione it is.
Values that share a class also share behavior. For example, the integers
1 and 2 are both instances of the int class. These two values can
be treated similarly. For example, they can both be negated or added to another
integer. <span>The built-in type function allows us to inspect the class of any
value.
>>> type(2)
The values we have used so far are instances of a small number of native data
types that are built into the Python language. Native data types have the
foll Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details