Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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