From cb8e7b84ed085eadb9288399a93549593a15aeba Mon Sep 17 00:00:00 2001 From: erbrown Date: Mon, 8 Sep 2025 11:26:09 -0400 Subject: [PATCH] I change my_name = input("what is your name?"). I added import math, area = math.pi * (radius * radius) and print(area). Checkpoint 1: Value is anything that is what it is instead of referring to something else. Name is referred to something else. A name could change or be different depending on different contexts. A name can be refer to you but you can change your name or you may have different variations of your name. Variables are a name that refers to a value. Assign a value to a variable. Variables are very useful in programming as we can assign the value on the right to the name on the left (name = value). If we want to change the value of the name we can easily go back and change it which is helpful in programming. You also can use the name/variable name instead of the value. For example for the value of pi rather than typing that value out you can assign the value to the name and use the name throughout the whole programming code. --- circle_area.py | 3 +++ greetings.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/circle_area.py b/circle_area.py index 513d6f7..de1330a 100644 --- a/circle_area.py +++ b/circle_area.py @@ -1,6 +1,9 @@ # circle_area.py # -------------- # By MWC Contributors +import math print("This program will calculate the area of a circle.") radius = float(input("What is the circle's radius? ")) +area = math.pi * (radius * radius) +print(area) diff --git a/greetings.py b/greetings.py index 2d878a6..bd544b0 100644 --- a/greetings.py +++ b/greetings.py @@ -2,6 +2,6 @@ # ------------ # By MWC contributors -my_name ="Chris" +my_name = input("What is your name? ") greeting = "Hello, " + my_name print(greeting)