Advertisement
smmac72

19

Mar 30th, 2023
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 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] in inp and int(tempsplit[2]) >= 1957:
  9.             if line[0] == ' ':
  10.                 outarr.append(line[1:])
  11.             else:
  12.                 outarr.append(line)
  13. for i in outarr:
  14.     print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement