User Profile

Collapse

Profile Sidebar

Collapse
Kevin Kevin
Kevin Kevin
Last Activity: Apr 22 '19, 07:32 PM
Joined: Apr 4 '19
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Kevin Kevin
    replied to python bank account
    how could a create a function that would save and update the account with the last transaction when i close the program
    See more | Go to post

    Leave a comment:


  • Kevin Kevin
    started a topic python bank account

    python bank account

    here is my code so far:
    1, How do I write a code that save and update the transaction made that when I close the program and run it again , the accounts will show the last transaction that was made before the programme ended.


    class Account(object) :
    def __init__(self):
    self.balance = 0

    def deposit(self, amount):
    if (amount < 0):
    return...
    See more | Go to post
No activity results to display
Show More
Working...