Remove .md and image files and move python files into main chapter folders
This commit is contained in:
parent
5978779a9a
commit
67806dab6a
159 changed files with 0 additions and 4562 deletions
13
thinkcspy/Chapter-5-Exercises/problem19.py
Normal file
13
thinkcspy/Chapter-5-Exercises/problem19.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 5
|
||||
# Problem 19
|
||||
|
||||
import math
|
||||
|
||||
c = float(input("Today we are going to calculate pi from the dimensions of a circle. What is the circumference of your circle?"))
|
||||
d = float(input("And what is the diameter of your circle?"))
|
||||
|
||||
zpi = c/d
|
||||
|
||||
print("The approximate value of pi from the dimensions provided is", zpi)
|
||||
print("The actual (also technically approximate) value of pi is", math.pi)
|
||||
Loading…
Reference in a new issue