<jupyter_start><jupyter_text>Question1<jupyter_code># Bank Account
class BankAccount: 
 
    def __init__(self): 
        self.ownerName="Manikandan"
        self.Balance=0
        
    def deposit(self):
        Amt=float(input("Depositing Amount : "))
        self.Balance += Amt
        print("Amount Deposited : ", Amt)
        operation()
        
    def withdraw(self):
        Amt = float(input("Amount to be Withdrawn : "))
        if Amt <= self.Balance:
          self.Balance -= Amt
          print("Withdrawn Amount :", Amt)
        else:
          print("\nInsufficient Fund. Available Balance:", self.Balance) 
        operation()  
 
print("BANK ACCOUNT DETAILS : ")
acc = BankAccount()
print("Account Holder Name : ", acc.ownerName)
print("Initial Balance : ", acc.Balance)

def operation():
    op=input("Do you want to Deposit or Withdraw or Exit D/W/E ?")
    if op.lower() == "d":
      acc.deposit()
    elif op.lower() == "w":
      acc.withdraw()
    elif op.lower() == "e":  
      exit
    else:
      print("Improper Response")  
operation()      
print("Net Balance is: ", acc.Balance)<jupyter_output>BANK ACCOUNT DETAILS : 
Account Holder Name :  Manikandan
Initial Balance :  0
Do you want to Deposit or Withdraw or Exit D/W/E ?E
Net Balance is:  0<jupyter_text>Question 2<jupyter_code>import math
class cone:
    def __init__(self,r,h):
        self.r=r
        self.h=h
    def volume(self):
        result = (self.h / 3) * math.pi * (self.r)**2
        print("Volume Of Cone is :",round(result,2))
    def surfacearea(self):
        result = math.pi * self.r *(self.r + math.sqrt(self.h **2 + self.r **2))
        print("Surface Area Of Cone is :",round(result,2))
 
rad = float(input("Radius of cone : "))
height = float(input("Height of cone : "))
obj = cone(rad,height)
obj.volume() 
obj.surfacearea()<jupyter_output>Radius of cone : 3
Height of cone : 5
Volume Of Cone is : 47.12
Surface Area Of Cone is : 83.23
{'fraction_non_alphanumeric': 0.1360369609856263, 'fraction_numerical': 0.010780287474332649, 'mean_word_length': 2.691287878787879, 'pattern_counts': {'":': 3, '<': 8, '<?xml version=': 0, '>': 7, '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': '329058', 'license': 'Apache-2.0', 'n_tokens_mistral': 682, 'n_tokens_neox': 653, 'n_words': 175, 'path': 'Assignment Day 6.ipynb', 'repo_name': 'gopi2650/letsupgrade-python', 'size': '1948'}