Skip to content

Instantly share code, notes, and snippets.

@FerdinaKusumah
Created July 28, 2020 12:46
Show Gist options
  • Save FerdinaKusumah/ac040f80ceff46c7e4759e8a86c4744f to your computer and use it in GitHub Desktop.
Save FerdinaKusumah/ac040f80ceff46c7e4759e8a86c4744f to your computer and use it in GitHub Desktop.
[Python] - Define Variable
"""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