Skip to content

Instantly share code, notes, and snippets.

@Sylvance
Created March 16, 2018 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sylvance/a97e95412d5353a591cb52115c7ad5fe to your computer and use it in GitHub Desktop.
Save Sylvance/a97e95412d5353a591cb52115c7ad5fe to your computer and use it in GitHub Desktop.
A program showing assignment and use of variables
Python 2.7.10 (default, Jul 15 2017, 17:16:57)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> changing = 1
>>> print(changing)
1
>>> changing = 15
>>> print(changing)
15
>>> variable=3
>>> print(variable)
3
>>> print(variable*changing)
45
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment