Skip to content

Instantly share code, notes, and snippets.

@tangzero
Created October 17, 2010 16:10
Show Gist options
  • Save tangzero/630970 to your computer and use it in GitHub Desktop.
Save tangzero/630970 to your computer and use it in GitHub Desktop.
>>> type(1)
<type 'int'>
>>> type(2.5)
<type 'float'>
>>> type("foobar")
<type 'str'>
>>> variavel = 1
>>> type(variavel)
<type 'int'>
>>> variavel = 2.5
>>> type(variavel)
<type 'float'>
>>> variavel = "foobar"
>>> type(variavel)
<type 'str'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment