Checkpoint 1:

- The difference between a value and a name is that the value refers to
what it is, a string or integer. And the name is refers to the object,
it can be called different names, but it's still the same object.

- In real-life, one tree species on Eastern Long Island is a Pin Oak.
The value refers to what it is such as "Pin Oak" and the name refers
to generic something of Eastern Long Island tree species.

- Benefit of using a variable in programming is to assign it with a
stored value (integer or string) associated to the name. I've been
reading about Python variables which is representational name that's
a basic unit of storage or container to stores values in a program.

Variable example, name = value

Real life variable example, EasternLI_tree_name = "Pin Oak"

Checkpoint 2:

- Where is a good source to get Python information to answer
these questions?

- Isn't the variable dependent on the type of function? If there's no
function what is the variable doing, nothing. Assign a function
to the variable name to get sometype of value interaction from the
user or output. Right?

- From my understanding is that functions can be reused throughout
a program with simplified and cleaner code. I see within the "2.
Functions" you can define a function such as a block of code
to reuse it multiple times throughout the program without
re-writing the original code. Smart coding, easier to understand,
and runs smoother with fewer errors.
This commit is contained in:
kathrynoh23 2023-08-04 14:56:25 -04:00
parent 579af5cbfa
commit 56e039ccd4
1 changed files with 0 additions and 1 deletions

View File

@ -29,4 +29,3 @@ hideturtle()
input()