Created
September 4, 2017 23:44
-
-
Save eightseventhreethree/16e85e6aef09c49a555849ca5b2e5d15 to your computer and use it in GitHub Desktop.
Demostration of variable types and how to obtain them for debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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