Skip to content

Instantly share code, notes, and snippets.

@desmayer
Created November 5, 2016 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save desmayer/b689ce2e6427598d60b8f4a6478c48a7 to your computer and use it in GitHub Desktop.
Save desmayer/b689ce2e6427598d60b8f4a6478c48a7 to your computer and use it in GitHub Desktop.
Python - Variables
"""
Do not have to define a variable type. Python will change memory allocation "dynamic typing"
"""
# Initialize a variable with an Interger
var = 8
print(var)
#Assign a float
var = 3.142
print(var)
#String
var = 'Python in easy steps'
print(var)
#Boolean
var = True
print(var)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment