Advertisement
smmac72

task19

May 30th, 2023
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. with open("finances.txt", mode="rt", encoding="utf-8") as file:
  2.     strings = file.readlines()
  3.     for s in strings:
  4.         tmp = s.split()
  5.         if s[0] == '+':
  6.             if int(s[1]) > 100:
  7.                 print(s)
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement