Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inp = input()
- outarr = []
- with open("wands.csv", "r") as infile:
- for n, line in enumerate(infile, 1):
- line = line.rstrip('\n')
- tempsplit = line.split(';')
- if tempsplit[0] in inp and int(tempsplit[2]) >= 1957:
- if line[0] == ' ':
- outarr.append(line[1:])
- else:
- outarr.append(line)
- for i in outarr:
- print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement