generated from mwc/lab_names
Name is a school lunch menu and each day food that are served differ. Pizza with some salad is value. I don't know much about programming, but I guess names are useful because value of each name can change often and name can be used to avoid typing values multiple times. It's like Excel spreedsheet?!
8 lines
215 B
Python
8 lines
215 B
Python
# circle_area.py
|
|
# --------------
|
|
# By MWC Contributors
|
|
|
|
pi = 3.141592653
|
|
print("This program will calculate the area of a circle.")
|
|
radius = float(input("What is the circle's radius? "))
|
|
print(pi * radius * radius) |