Professional Documents
Culture Documents
Document
Document
def print_circum(radius):
# Import the math module to use the value of pi
import math
# Calculate the circumference using the formula 2 * pi * radius
circumference = 2 * math.pi * radius
# Print the circumference with two decimal places
print(f"The circumference of the circle with radius {radius} is {circumference:.2f}")
# Call the print_circum function three times with different values for radius
print_circum(1) # Input: 1, Output: The circumference of the circle with radius 1 is 6.28
print_circum(5) # Input: 5, Output: The circumference of the circle with radius 5 is 31.42
print_circum(10) # Input: 10, Output: The circumference of the circle with radius 10 is 62.83
Online store
Product(S) Price
Item 1 200.0
Item 2 400.0
Item 3 600.0
Combo 1 540.0
Combo 2 900.0
Combo 3 720.0
Combo 4 900.0