<human>:  Can you show me a Python function to get the type of a variable.
<bot>: Here is a Python function to get the type of a variable

import collections

def get_type(var):
  """Get the type of a variable"""
  return type(var)

# Enter the variable
var = 1

# Calling the function
print((get_type(var)))

#Example Output
# <class 'int'>

#Remember to inspect code for bugs.