Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # fun_fact_about_buying_pizza.py
- import math
- # Radius of the pizzas
- radius_18 = 18 / 2
- radius_12 = 12 / 2
- # Area calculations
- area_18 = math.pi * (radius_18 ** 2)
- area_12 = math.pi * (radius_12 ** 2)
- # Comparison
- print("Area Size of 2 12inch Pizzas =", int(area_12 * 2))
- print("Area Size of an 18inch Pizza =", int(area_18))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement