14 lines
158 B
Python
14 lines
158 B
Python
|
# test builtin type
|
||
|
|
||
|
print(type(int))
|
||
|
|
||
|
try:
|
||
|
type()
|
||
|
except TypeError:
|
||
|
print('TypeError')
|
||
|
|
||
|
try:
|
||
|
type(1, 2)
|
||
|
except TypeError:
|
||
|
print('TypeError')
|