Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Status/Day 5.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,22 @@ while 1:
break
print(f'Your current balance is: {money}')
```
---
'''
'''TJ'''
import re
amount = 0
while True:
ipt = input()
if re.match('D', ipt):
amount += int(ipt[2::])
if re.match('W', ipt):
amount -= int(ipt[2::])
if ipt == '':
break
print(amount)
'''

---

[**_go to previous day_**](https://github.com/darkprinx/100-plus-Python-programming-exercises-extended/blob/master/Status/Day%204.md "Day 4")
Expand Down