needed to make all the letters lower when creating the list

This commit is contained in:
Mark McIntyre 2019-12-03 10:02:18 -05:00
parent 3d176560aa
commit 3d7ac4e6e0

View File

@ -13,11 +13,11 @@ def main():
args = parse_args()
saruman_list = list("saruman")
name_list = [x for x in args.name if x]
name_list = [x.lower() for x in args.name if x]
matching_letters = list()
for letter in saruman_list:
if letter.lower() in name_list:
if letter in name_list:
matching_letters.append(letter)
name_list.pop(name_list.index(letter))