<jupyter_start><jupyter_text>Assignment day 8 Q1<jupyter_code>class Bank_Account: 
 
    def __init__(self): 
 
        self.balance=0
 
        print("Hello!!! Welcome to the Deposit & Withdrawal Machine") 
 
  
 
    def deposit(self): 
 
        amount=float(input("Enter amount to be Deposited: ")) 
 
        self.balance += amount 
 
        print("\n Amount Deposited:",amount) 
 
  
 
    def withdraw(self): 
 
        amount = float(input("Enter amount to be Withdrawn: ")) 
 
        if self.balance>=amount: 
 
            self.balance-=amount 
 
            print("\n You Withdrew:", amount) 
 
        else: 
 
            print("\n Insufficient balance  ") 
 
  
 
    def display(self): 
 
        print("\n Net Available Balance=",self.balance)
 m=Bank_Account()
 m.deposit() 
m.withdraw() 
m.display()<jupyter_output>Enter amount to be Deposited: 45000 

 Amount Deposited: 45000.0
Enter amount to be Withdrawn: 4000

 You Withdrew: 4000.0

 Net Available Balance= 41000.0<jupyter_text>Q2<jupyter_code>import math
class cone():
    def __init__(self, r, h):
        self.radius = r
        self.height= h
         
    def area(self):
        return 3.14*self.radius*(self.radius+math.sqrt(self.height*self.height +self.radius*self.radius))
    
    def volume(self):
        return (1/3)* 3.14 *self.radius *self.radius * self.height
 
Newcone = cone(2,3)
print(Newcone.area())
print(Newcone.volume())<jupyter_output>35.20286200991386
12.559999999999999
{'fraction_non_alphanumeric': 0.11820652173913043, 'fraction_numerical': 0.049592391304347824, 'mean_word_length': 2.6014669926650367, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '134084', 'license': 'Apache-2.0', 'n_tokens_mistral': 576, 'n_tokens_neox': 476, 'n_words': 106, 'path': 'Day6_assignment.ipynb', 'repo_name': 'alfiya0789/letsupgradepython', 'size': '1472'}