<jupyter_start><jupyter_text>question 2<jupyter_code>class cone():

    def __init__(self,r,h):
        self.radius = r
        self.height = h

    def getdetails(self):
        print("radius: ",self.radius)
        print("height: ",self.height)

    def volume(self):
        import math
        vol = 1/3*self.height*math.pi*self.radius*self.radius
        print("volume:",vol)
        
    def SurfaceArea(self):
        import math
        base = math.pi*self.radius*self.radius
        side = math.pi*self.radius*math.sqrt((self.radius*self.radius)+(self.height*self.height))
        print("surface area:")
        print("base: ",base)
        print("side: ",side)
cone1 = cone(3,2)
cone.getdetails(cone1)
cone.volume(cone1)
cone.SurfaceArea(cone1)<jupyter_output>surface area:
base:  28.274333882308138
side:  33.98152019741693
{'fraction_non_alphanumeric': 0.14268585131894485, 'fraction_numerical': 0.050359712230215826, 'mean_word_length': 2.9761904761904763, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '537606', 'license': 'Apache-2.0', 'n_tokens_mistral': 318, 'n_tokens_neox': 282, 'n_words': 46, 'path': 'day 6 assignment.ipynb', 'repo_name': 'vileshranjith/letsupgrade-python', 'size': '834'}