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.
This commit is contained in:
Lauren Dawnkaski 2024-09-06 07:31:02 -04:00
parent a93fb66cf0
commit 4cdc727194
4 changed files with 20 additions and 1 deletions

View File

@ -4,3 +4,6 @@
print("This program will calculate the area of a circle.")
radius = float(input("What is the circle's radius? "))
pi=3.141592653
area=pi*radius*radius
print (area)

9
circle_area.py completed Normal file
View File

@ -0,0 +1,9 @@
# circle_area.py
# --------------
# By MWC Contributors
print("This program will calculate the area of a circle.")
radius = float(input("What is the circle's radius? "))
pi=3.141592653
area=pi*radius*radius
print (area)

View File

@ -2,6 +2,6 @@
# ------------
# By MWC contributors
my_name ="Chris"
my_name = input("What is your name?")
greeting = "Hello, " + my_name
print(greeting)

7
poetry.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.
package = []
[metadata]
lock-version = "2.0"
python-versions = "^3.10"
content-hash = "53f2eabc9c26446fbcc00d348c47878e118afc2054778c3c803a0a8028af27d9"