import decimal
from math import pi, pow
decimal.getcontext().prec = 9
context = decimal.getcontext()
context.rounding = decimal.ROUND_HALF_UP

cylinders = [
    {"name": "Cylinder 1", "radius": "23.2", "height": "11.4", "units": "m"},
    {"name": "Cylinder 2", "radius": "50.2", "height": "23.4", "units": "m"},
    {"name": "Cylinder 3", "radius": "13.267", "height": "32.4", "units": "m"},
    {"name": "Cylinder 4", "radius": "25.2121", "height": "74.4", "units": "m"},
    {"name": "Cylinder 5", "radius": "52.2978", "height": "30.4", "units": "m"},
]

for line in cylinders:
    radius = decimal.Decimal(line['radius'])
    height = decimal.Decimal(line['height'])
    # sur_area = ((decimal.Decimal(2)*decimal.Decimal(pi)*decimal.Decimal(radius))*decimal.Decimal(height)) + ((decimal.Decimal(pi)*decimal.Decimal(radius)**decimal.Decimal(2))*decimal.Decimal(2))
    surface_area = decimal.Decimal(2) * decimal.Decimal(pi) * radius * height + decimal.Decimal(2) * decimal.Decimal(pi) * decimal.Decimal(pow(radius, 2))
    # print(surface_area)
    print(f'The surface of Cylinder 1 is {surface_area} m\u00B2')