I know that type() function is used to return the class type of parameter.I wrote the below code
class try1 :
a = 0
print(type(try1())) # line 1
print(type(try1)) # line 2
print(type(type(try1))) #line 3
print(type(type(try1()))) #line 4
The output were as follows
<class '__main__.try1'>
<class 'type'>
<class 'type'>
<class 'type'>
I was able to understand the out of "#line 1 " . But I am not able to get why it is showing class type as 'type' for the other 3 line. Can anyone please explain it to me a bit clearly. I will be very grateful to them.
Thank You