type |
| type ? |
Returns the type of an object (built-in). |
| x | ?? |
| REMARKS |
| * ?? * For the Official documentation refer to python.org |
type(object)
type(name, bases, dict)
numberList = [1, 2]
print(type(numberList))
numberDict = {1: 'one', 2: 'two'}
print(type(numberDict))
class Foo:
a = 0
InstanceOfFoo = Foo()
print(type(InstanceOfFoo))
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited Top