#python fundamentals (3) — handling variables
▻https://hackernoon.com/python-fundamentals-3-handling-variables-552032810de3?source=rss----3a81
Python fundamentals (3) — handling variablesThere are many metaphors for variables in Python. One could view a variable as something like a bucket, into which you can place data. So the bucket called age could have the value of 12 — but, crucially, because it is a variable, it’s value can change to 13 or any other number at any point.In truth, most quantities that we use in a #programming language can have values that change, and these quantities are variables (the opposite of which is a constant, but more on that another time). A variable in Python has an identifier, and the Pythonesque way of thinking of this is (note the lower case):identifier = valueSo for example: age = 13…has age as the identifier, in this case a variable, and 13 as the value. Another example:name = input (“What is your (...)