Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open("finances.txt", mode="rt", encoding="utf-8") as file:
- strings = file.readlines()
- for s in strings:
- tmp = s.split()
- if s[0] == '+':
- if int(s[1]) > 100:
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement