2 Commits

Author SHA1 Message Date
angelotr
cc35815a1a In this project I had to change many lines to get
my shapes to work properly. I managed to get one shape to work properly
but the other I was not so fortunate to have work.

Checkpoint 1:

A value is the actual data, like the number 5 or the text "Angelo".
A name is a label that refers to that value, like a variable in Python.
For example, in my_name = "Angelo", the value is "Angelo" and the name is my_name.
An everyday example is a mailbox: the name on the mailbox shows whose mail it is, while the letters inside are the actual contents.
Changing the name doesn't change the letters, so it's important to distinguish between the two.

Variables are useful in programming because they let you give a name to a value, making your code easier to read, understand, and reuse.
Instead of repeatedly typing the same value, you can use a name that represents it,
which makes it easier to update the value in one place if it changes.

Checkpoint 2:

A function is like a variable because it has a name that refers to a piece of code, just like a variable has a name that refers to a value.
Once you define a function, you can use its name to run the code it contains, without rewriting the same instructions each time.
Functions are useful for breaking down big problems because they allow you to divide a large task into smaller, manageable steps.
For example, if you are writing a program to calculate the area and perimeter of many circles,
you could create one function to calculate the area and another to calculate the perimeter.
Then, you can call these functions whenever you need them, instead of rewriting the formulas each time.
2025-09-02 00:04:27 -04:00
26f98d26bc Initial commit 2025-09-01 02:29:10 +00:00