Created
December 5, 2019 01:36
-
-
Save FerdinaKusumah/f8f5b602e0ddfa9163a7d36f1e029975 to your computer and use it in GitHub Desktop.
Variation define variable
This file contains hidden or 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
"""Simple variable""" | |
a = 10 | |
print("Simple variable a = {}".format(a)) | |
# Simple variable a = 10 | |
"""Multiple variable""" | |
a, b = 10, True | |
print("Multiple variable a = {}, b = {}".format(a, b)) | |
# Multiple variable a = 10, b = True | |
"""Multiple variable with same value""" | |
a = b = 10 | |
print("Multiple variable with same value a = {}, b = {}".format(a, b)) | |
# Multiple variable with same value a = 10, b = 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment