Advertisement
smmac72

19

Mar 30th, 2023
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. inp = input()
  2. outarr = []
  3. with open("wands.csv", "r") as infile:
  4.     for n, line in enumerate(infile, 1):
  5.         line = line.rstrip('\n')
  6.         tempsplit = line.split(';')
  7.        
  8.         if tempsplit[0] == inp and int(tempsplit[2]) >= 1957:
  9.             outarr.append(line)
  10. for i in outarr:
  11.     print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement