Skip to content

Instantly share code, notes, and snippets.

@treyharris
Created November 14, 2019 16:29
Show Gist options
  • Save treyharris/314541ad35aa39acaead4046affdeae5 to your computer and use it in GitHub Desktop.
Save treyharris/314541ad35aa39acaead4046affdeae5 to your computer and use it in GitHub Desktop.
y = 3
x = y # x assigned value of y
y = 4
print(x) # Result: 3
y = 3
x := y # x bound to y
y = 4
print(x) # Result: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment