Skip to content

Instantly share code, notes, and snippets.

@belsander
Created December 11, 2016 15:57
Show Gist options
  • Save belsander/e6e75b86f05c0b5161c7a8db21c0dc03 to your computer and use it in GitHub Desktop.
Save belsander/e6e75b86f05c0b5161c7a8db21c0dc03 to your computer and use it in GitHub Desktop.
type(object)
# Example
>>> test_dict = dict()
>>> test_int = 0
>>> test_str = ""
>>> test_tuple = tuple()
>>> test_list = list()
>>> type(test_dict)
<type 'dict'>
>>> type(test_int)
<type 'int'>
>>> type(test_str)
<type 'str'>
>>> type(test_tuple)
<type 'tuple'>
>>> type(test_list)
<type 'list'>
>>> dict # just showing what is a type object is
<type 'dict'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment