
    Design a function for the math learning platform that calculates the volume of an ice cream cone to help students master geometric formulas. The function should take the radius of the cone's base (representing the width of the ice cream scoop) and the height of the cone as inputs to determine how much ice cream the cone can hold. The automated grading system will use this function to verify students' understanding of three-dimensional geometry and provide instant feedback on their calculations.
    

    
import math

def volume_cone(r, h):
    """
    Design a function for the math learning platform that calculates the volume of an ice cream cone to help students master geometric formulas. The function should take the radius of the cone's base (representing the width of the ice cream scoop) and the height of the cone as inputs to determine how much ice cream the cone can hold. The automated grading system will use this function to verify students' understanding of three-dimensional geometry and provide instant feedback on their calculations.
    

    """
import math

def volume_cone(r, h):
    """
    Design a function for the math learning platform that calculates the volume of an ice cream cone to help students master geometric formulas. The function should take the radius of the cone's base (representing the width of the ice cream scoop) and the height of the cone as inputs to determine how much ice cream the cone can hold. The automated grading system will use this function to verify students' understanding of three-dimensional geometry and provide instant feedback on their calculations.
    

    """
    volume = 1.0 / 3 * math.pi * r * r * h
    return volume