Created
November 5, 2016 22:41
-
-
Save desmayer/b689ce2e6427598d60b8f4a6478c48a7 to your computer and use it in GitHub Desktop.
Python - Variables
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
""" | |
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