Just trying to figure out what the difference is between .type() method and type() function. To me, I don't see why they are returning different outputs although they seem to be doing the same thing (ie. determining the type of the object)
x = 1
print(x.type())
returns: AttributeError: 'int' object has no attribute 'type'
whereas
x = 1
print(type(x))
returns: <class 'int'>
Anyone have any ideas?