Skip to content

Commit 6637498

Browse files
committed
still working
1 parent 47ac569 commit 6637498

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

code/Andy/python/andy_lab10_atm_v1.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ def check_withdrawal(self, amount): #using self to get balance and amount since
1818
return True
1919
else:
2020
return False
21-
21+
def withdraw(self, amount):
22+
self.balance -= amount
23+
2224

2325

2426
# atm = ATM(5, .001) #putting the values for the initializer.its an object

0 commit comments

Comments
 (0)