## To get the type of a variable, use 'type()' type("Hello World!") ## Output: ## str
isinstance(object, classinfo) The isinstance() takes two parameters: object : object to be checked classinfo : class, type, or tuple of classes and types