needed to make all the letters lower when creating the list
This commit is contained in:
parent
3d176560aa
commit
3d7ac4e6e0
@ -13,11 +13,11 @@ def main():
|
|||||||
args = parse_args()
|
args = parse_args()
|
||||||
|
|
||||||
saruman_list = list("saruman")
|
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()
|
matching_letters = list()
|
||||||
|
|
||||||
for letter in saruman_list:
|
for letter in saruman_list:
|
||||||
if letter.lower() in name_list:
|
if letter in name_list:
|
||||||
matching_letters.append(letter)
|
matching_letters.append(letter)
|
||||||
name_list.pop(name_list.index(letter))
|
name_list.pop(name_list.index(letter))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user