Created
July 28, 2020 12:46
-
-
Save FerdinaKusumah/ac040f80ceff46c7e4759e8a86c4744f to your computer and use it in GitHub Desktop.
[Python] - 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(f'simple variable a = {a}') | |
# simple variable a = 10 | |
"""Multiple Variable""" | |
a, b = 10, True | |
print(f'multi variable a, b = {a}, {b}') | |
# multi variable a, b = 10, True | |
"""Multiple Variable With Same Value""" | |
a = b = 10 | |
print(f'multi variable with same value a, b = {a}, {b}') | |
# multi variable with same value a, b = 10, 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment