Skip to content

elidot/hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

hello-world

A learning test on how to generate a repository on GitHub this is my first time learning GitHub and how to add commits to my

Copying a code

class Account:

def __init__(self,owner,balance=0):
    self.owner=owner
    self.balance=balance
    
def __str__(self):
    return f'Account owner:   {self.owner}\nAccount balance: ${self.balance}'

def deposit(self,deposit):
    self.balance += deposit
    print (f" Deposit of {deposit} accepted,\n your current balance is:{self.balance}) ")
    #print(f"your current balance is :{self.balance}")
def withdraw(self, withdraw):
    if self.balance >= withdraw:
        self.balance -= withdraw
        print('Withdraw')
    else:
        print('Insuficient funds')

About

A learning test on how to generate a repository on GitHub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published