Skip to content

Instantly share code, notes, and snippets.

@eightseventhreethree
Created September 4, 2017 23:44
Show Gist options
  • Save eightseventhreethree/16e85e6aef09c49a555849ca5b2e5d15 to your computer and use it in GitHub Desktop.
Save eightseventhreethree/16e85e6aef09c49a555849ca5b2e5d15 to your computer and use it in GitHub Desktop.
Demostration of variable types and how to obtain them for debugging
#!/usr/bin/env python
# global vars
varInt=1
varFloat=1.1
varStr="Hello World"
varList=['hello', 'world', 'this', 'is', 'a', 'list']
# Doing stuff with tacos
print "Below are the types associated to the variables: \n"
print varInt,"is",type(varInt)
print varFloat,"is",type(varFloat)
print varStr,"is",type(varStr)
print varList,"is",type(varList)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment