generated from mwc/lab_names
- 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. |
||
---|---|---|
.DS_Store | ||
.commit_template | ||
.gitignore | ||
circle_area.py | ||
def_square_demo.py | ||
draw_with_shapes.py | ||
from_turtle_import_square.py | ||
greetings.py | ||
poetry.lock | ||
pyproject.toml | ||
shapes.py | ||
square_demo.py | ||
squares_4_separated.py | ||
squares_4_sidebyside.py | ||
squares_function_w_arguments.py | ||
test_shapes.py |