<jupyter_start><jupyter_text>For this challenge, create bank account class that has two attributes: Ownername, Balance, Deposit and Withdrawal As an add requirement, withdrawal may not exceed the available balance. Instantiate your class, make several deposits and withdrawal, and test to make sure the account can't be overdrawn<jupyter_code>class bankaccount():
    def __init__ (self,Ownername,Balance,Deposit,Withdrawal):
        self.Ownername = Ownername
        self.Balance   = Balance
        self.Deposit   = Deposit
        self.Withdrawal= Withdrawal
    
    def getdetails(self):
        print("Ownername - ", self.Ownername)
        print("Balance - ", self.Balance)
        print("Deposit - ", self.Deposit)
        print("Withdrawal - ", self.Withdrawal)
member= bankaccount("Aiswarya",5200,6900,1700)
member.getdetails()
member.Ownername
member.Balance
member.Deposit
member.Withdrawal<jupyter_output><empty_output><jupyter_text>Make a class function for cone that has two attributes: r = radius h = height and two methods volume, v = 1/3 (pi * r * h) surface area, a =  pi * r ** 2 + pi * r * sqrt(h ** 2+r ** 2)<jupyter_code>from math import sqrt
from math import pi

class cone():
    def __init__(self,radius,height,volume,surface):
        self.radius = radius
        self.height = height
        self.volume = volume
        self.surface = surface
        
    def getdetails(self):
        print("radius - ",self.radius)
        print("height - ",self.height)
        print("volume - ",self.volume)
        print("surface - ",self.surface)
        
radius = r=0
height = h=0
volume = 1/3 *pi * r * h
surface = pi * r ** 2 + pi * r * sqrt(h ** 2+r ** 2)
function = cone("r","h","1/3 *pi * r * h","pi * r ** 2 + pi * r * sqrt(h ** 2+r ** 2)")
function.getdetails()
function.surface
function.volume<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12101566720691519, 'fraction_numerical': 0.015667206915180983, 'mean_word_length': 3.277136258660508, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '302960', 'license': 'Apache-2.0', 'n_tokens_mistral': 606, 'n_tokens_neox': 573, 'n_words': 169, 'path': 'Day6 - B7, Assignment.ipynb', 'repo_name': 'aishwarya2816/LetsUpgrade-Python-essential---B7', 'size': '1851'}