<jupyter_start><jupyter_text>Q1  Create a bank account class with two attributes:*Owner name, *balance and two methods *deposit and *withdraw. Withdrawals may not exceed the available balance.Make several deposits and withdrwals and test to make sure that account can't be overdrawn.<jupyter_code>class Bank_Account: 
    def __init__(self): 
        self.balance=0
        print("Hello!!! This is Deposit & Withdrawal process") 
        
    def ownername(self):
        print("\n Account ownername is Abc and Initial Account balance is INR 0.00")
        
  
    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) 
s = Bank_Account()
s.ownername()
s.deposit() 
s.withdraw() 
s.display() 
s.deposit() 
s.withdraw() 
s.display() 
s.deposit() 
s.withdraw() 
s.display()<jupyter_output>Enter amount to be Deposited: 300

 Amount Deposited: 300.0
Enter amount to be Withdrawn: 800

 You Withdrew: 800.0

 Net Available Balance= 200.0<jupyter_text>Q2<jupyter_code>import math 
pi = math.pi 
def volume(r, h): 
    return (1 / 3) * pi * r * r * h 
 def surfacearea(r, s): 
    return pi * r * s + pi * r * r
radius = float(5) 
height = float(12) 
slat_height = float(13) 
print( "Volume Of Cone : ", volume(radius, height) ) 
print( "Surface Area Of Cone : ", surfacearea(radius, slat_height) )<jupyter_output>Volume Of Cone :  314.15926535897927
Surface Area Of Cone :  282.7433388230814
{'fraction_non_alphanumeric': 0.11021069692058347, 'fraction_numerical': 0.03457590491626148, 'mean_word_length': 3.0086580086580086, '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': '162113', 'license': 'Apache-2.0', 'n_tokens_mistral': 668, 'n_tokens_neox': 593, 'n_words': 185, 'path': '5th Assignment Day 6 - B7.ipynb', 'repo_name': 'Ankit5719/LetsUpgrade-Python-Essentials-Batch-7', 'size': '1851'}