# Warm up calculations
import math
print(int((8**4) / (50*31)))
print(int((3+9) * math.sqrt(5)))
2 26
# Taxes
def tax(price):
"""Return the given price with tax added to it"""
return(price*1.13)
# Tests
assert abs(tax(10) - 11.300) < 0.001, "10 dollars"
# Circle Area
import math
def find_radius(area: float) -> float:
"""Return the radius of a circle
given its area"""
return math.sqrt(area / math.pi)
def find_circumference(area: float) -> float:
"""Return the circumference of a circle
given its area"""
r = find_radius(area)
return(2*math.pi*r)
# Tests
assert abs(find_radius(30) - 3.0901) < 0.001, "radius test"
assert abs(find_circumference(30) - 19.5) < 0.1, "circumference test"