<jupyter_start><jupyter_text>Assignment-1  For this challenge,create a bank account class that has two attributes*ownerName*BalanceAnd two methods*deposit*withdrawAs an added requirement,withdrawals may not exceed the available balance.Instantiate your class,make several deposits and withdrawals,and test to make sure the accountcant be overdrawn.<jupyter_code>class BankAccount: 

    def __init__(self): 

        self.ownerName="vikram"
        
        self.Balance=0
        
    def deposit(self): 
        
        Amount=float(input("\nEnter amount to be Deposited : ")) 
        
        self.Balance += Amount 
        
        print("\nAmount Deposited is :",Amount) 
  
    def withdraw(self): 
        
        Amount = float(input("\nEnter amount to be Withdrawn : ")) 
        
        if self.Balance >= Amount: 
        
            self.Balance -= Amount 
            
            print("\nYou have Withdrew :", Amount) 
        
        else: 
        
            print("\nInsufficient balance in the account...") 

print("\n---WELCOME TO BACK ACCOUNT PROGRAM---")
    
BA = BankAccount()

print("\nAccount Holder Name is :",BA.ownerName)
    
print("\nInitial Account Balance is :",BA.Balance)
   
BA.deposit();
    
BA.withdraw();
    
print("\nNet Avaliable balance is : ",BA.Balance)<jupyter_output>---WELCOME TO BACK ACCOUNT PROGRAM---

Account Holder Name is : vikram

Initial Account Balance is : 0

Enter amount to be Deposited : 10000

Amount Deposited is : 10000.0

Enter amount to be Withdrawn : 5000

You have Withdrew : 5000.0

Net Avaliable balance is :  5000.0<jupyter_text>Assignment-2  For this challenge,create a cone class that has two attributes:*R=Radius*h=HeightAnd two methods:*Volume = Π * r2 = (h/3)*Surface area : base : Π * r2 , side : Π * r * √(r2 + h2)Make only one class with functions,as in where required import Math.<jupyter_code>import math

pi = math.pi

class cone:
    
    def __init__(self,r,h): 

        self.r=r
        
        self.h=h
        
    def volume(self):
        
        result = (1 / 3) * pi * self.r * self.r * self.h
        
        print("\nVolume Of Cone is :",result)
        
    def surfacearea(self):
        
        result = pi * self.r * self.h + pi * self.r * self.r
         
        print("\nSurface Area Of Cone is :",result)
radius = float(input("\nEnter the radius of cone : "))

height = float(input("\nEnter the height of cone : "))

c = cone( ra, he)

c.volume()

c.surfacearea()<jupyter_output>Enter the radius of cone : 5.5

Enter the height of cone : 7

Volume Of Cone is : 221.74408146587956

Surface Area Of Cone is : 215.98449493429825
{'fraction_non_alphanumeric': 0.10261264672472548, 'fraction_numerical': 0.02764104505868989, 'mean_word_length': 2.3915275994865213, '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': '38961', 'license': 'Apache-2.0', 'n_tokens_mistral': 895, 'n_tokens_neox': 817, 'n_words': 253, 'path': 'Day-6-Assignment.ipynb', 'repo_name': 'vikramreddy7/Day-6-Assignment', 'size': '2641'}