Go to file
Pat Wick dda8666763 CP1: imported math for pi, used the area formula
A value is some object that exists, whereas a name is a reference to
that value. An example where it is important to distinguish between a
name and the value it represents is any reference to time. Sometimes
generalization is acceptable ("I don't have time") but often the actual
amount matters and so we care about the value, not the name itself.

Variables are useful in programming because their values are able to be
changed, by definition (variables can vary). This is useful because we
can use variables to parameterize our code, allowing for easier modification
and improvement or expansion. They can also make code more readable,
even without documentation because effective naming of variables allows
someone (even one who didn't write the specific code referenced) to see
the variable names and hopefully understand what the values mean and how
they are used in the program, for example, using "ballSpeed" vs "x".
2023-07-16 20:35:32 -04:00
.commit_template Initial commit 2023-07-16 20:39:12 +00:00
.gitignore Initial commit 2023-07-16 20:39:12 +00:00
circle_area.py CP1: imported math for pi, used the area formula 2023-07-16 20:35:32 -04:00
draw_with_shapes.py Initial commit 2023-07-16 20:39:12 +00:00
greetings.py CP1: imported math for pi, used the area formula 2023-07-16 20:35:32 -04:00
pyproject.toml Initial commit 2023-07-16 20:39:12 +00:00
shapes.py CP1: imported math for pi, used the area formula 2023-07-16 20:35:32 -04:00
test_shapes.py Initial commit 2023-07-16 20:39:12 +00:00