From 56e039ccd45c7f81daacad4bb920e65b60f7cbe0 Mon Sep 17 00:00:00 2001 From: kathrynoh23 <126970932+kathrynoh23@users.noreply.github.com> Date: Fri, 4 Aug 2023 14:56:25 -0400 Subject: [PATCH] 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. --- draw_with_shapes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/draw_with_shapes.py b/draw_with_shapes.py index 38eb934..8b4a137 100644 --- a/draw_with_shapes.py +++ b/draw_with_shapes.py @@ -29,4 +29,3 @@ hideturtle() input() -