On 20/07/17 18:41, Daniel Bosah wrote:
> I'm trying to get my function to work:
Did you read any of the replies to your previous message?
You do not appear to have applied any of the suggestions.
> def deposit(self,amount):
> if amount > 0:
> self.balance += amount
>
I'm trying to get my function to work:
def deposit(self,amount):
if amount > 0:
self.balance += amount
self.show_balance()
self.transaction_list.append((pytz.utc.localize(datetime.datetime.utcnow()),amount))
# appends traction details to list
def