As I mentioned in my original question. This is a first for me and a VERY dauting undertaking as I am unskilled in every basic facet of what programming is. I may ask many questions, most of them rudimentary and wrong but I appreciate all of the advice in advance. First I need to find the onion, then I will start peeling.

This is a good example of mutability where your variable can have a value that changes as needed as opposed to an immutable one where the value is fixed and never changing

I actually created a third variable - quilt_dim = quilt_length * quilt_width
But whenI updated the quilt_length to 8, the value of quilt_dim syill remained 96 (should have been 64). What went wrong?

For the first question of, " Let’s make this first quilt 8 squares wide and 12 squares long. Print out the number of squares you’ll need to create the quilt!"

The first solution is used to compute the area of the quilt in terms of square units. If it is 8 squares wide (that’s 8 squares set side by side in row) then the area will be 12 rows of 8, or 8 * 12 (a product) giving 96 square units.

quilt_width + quilt_length

is a sum that will give us one-half of the perimeter of the quilt. The perimeter is the length along the outside edges.

Although previous posts have correctly answered the questions raised by ’ tag6763830753’, and ‘cloud4251584065’ (these usernames are not presented in response to ‘@’), I thought it may be helpful to be more explicit in case other new coders also struggle with this ‘concept’.

First off, I suspect some people familiar with spreadsheet formulae are confusing the way a spreadsheet formula works with the way a program formula works, wherein a (cell) formula dynamically updates when the underlying data value changes. (E.g. if cell A1 contains the formula “=A3+A4”, and A3 contains “23” and A4 contains “45”, cell A1 will display a value of “68”, but, the cell still contains the formula (which displays in the formula bar) - which is why the displayed value changes when a value in cell A3 or A4 changes.

When a variable in Python (and most programming languages) is assigned the (value of a) formula, the formula is evaluated immediately and the result is what is stored in the variable, not the formula. Thus:

i.e. quilt_dim at this point contains the result of the formula, namely 96, and not the formula. In terms of variable behaviour it is no different to quilt_width or quilt_length.

Therefore, the same way as when you want quilt_length to contain a new value, you had to insert code to assign the new value to it, if you want quilt_dim to contain a new value, you have to insert code for that as well, whether it is in the form of a literal (like 64), or a formula.