<jupyter_start><jupyter_text>Question 1For this challenge,create a bank account class that has two attributes<jupyter_code>class BankAcc():
    def __init__(self,ownname,bal):
        self.ownname = ownname
        self.bal = bal
               
    def deposit(self):
        dep = input("Amount to be Deposited -  ")
        dep = int(dep)
        self.bal += dep
        print("Present Balance is - ", self.bal)
    
    def withdraw(self):
        wdraw = input("Amount to be withdrawn -  ")
        wdraw = int(wdraw)
        
        if wdraw > self.bal:
            print("Withdrawal Amount is greater than balance")
        else:
            self.bal = self.bal - wdraw
            print("Present Balance in Account is - ",self.bal)
            
    def details(self):
        print("Account Owner is: ", self.ownname)
        print("Available Balance: ", self.bal,"Rs")
mit = BankAcc("Mithun", 5000)
mit.details()
mit.deposit()
mit.details()
mit.withdraw()
mit.withdraw()
mit.details()
mit.withdraw()
mit.deposit()
mit.withdraw()<jupyter_output>Amount to be withdrawn -  90000
Withdrawal Amount is greater than balance<jupyter_text>Question 2For this challenge,create a cone class that has two attributes:<jupyter_code>import math
class cone():
    def __init__(self,rad,height):
        self.rad = rad
        self.height = height
    
    def volume(self):
        vol = (math.pi * (self.rad**2)*self.height)/3
        print("The volume of cone is - ",vol)
        
    def lsa(self):
    #This is lateral surface area
        lsa = math.pi * self.rad * math.sqrt(self.height**2 + self.rad**2)
        print("The Lateral Surface area of cone is - ", lsa)
    def tsa(self):
        tsa = math.pi * self.rad * (self.rad + math.sqrt(self.height**2 + self.rad**2))
        print("The Total Surface area of cone is - ", tsa)
cone1 = cone(8,6)
cone1.height
cone1.rad
cone1.volume()
cone1.lsa()
cone1.tsa()<jupyter_output>The Total Surface area of cone is -  452.3893421169302
{'fraction_non_alphanumeric': 0.12115093387178193, 'fraction_numerical': 0.020696617869762745, 'mean_word_length': 2.54561717352415, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '520995', 'license': 'Apache-2.0', 'n_tokens_mistral': 671, 'n_tokens_neox': 631, 'n_words': 173, 'path': 'Day 6 Assignment.ipynb', 'repo_name': 'IamProBro/LU_B7_Day_6', 'size': '1981'}