Commit Graph

3 Commits

Author SHA1 Message Date
Lauren Dawnkaski 77075236c7 I have reached checkpoint 2.
A function and variable are alike since a variable gives a name to a certain value while a function gives a name to a larger amount of values.
They both shorten and simplify what needs to be typed in the program as well.
Functions might be useful in breaking down big, hard problems because you can work on a certain aspect of the problem and then create a function so you don't have to worry about that small piece of the problem again.
For example when working on the turtle lab, since I used a lot of repeated symmetry, this would have been simpler if I could define some functions.
2024-09-06 07:57:04 -04:00
Lauren Dawnkaski 4cdc727194 I have reached checkpoint 1.
A value is straight forward and means exactly what you see. A name refers to something that could change and isn't exact. (it could refer to multiple things)
In my everyday life it is important to distinguish between names and values when being exact when discussing where to go during substitute teaching. For example, if I am asked to do cafeteria duty (name) I need to know which cafeteria to go to (value).
Variables might be useful in programming in order to type less and make things quicker.
It also can make things simpler rather than writing a long, complex value.
2024-09-06 07:31:02 -04:00
ldawnkaski a93fb66cf0 Initial commit 2024-08-27 20:34:48 +00:00