import csv

#input number you want to search
cardName = input('Enter part of name to find\n')

#read csv, and split on "," the line
csv_file = csv.reader(open('MunchkinTreasureCards.csv', "r"), delimiter=",")

#loop through the csv list
for row in csv_file:
    if len(row) > 1: #checking for empty rows
    #if input is equel to anything in the file, then it is returned. lower() makes sure it does not distinguish between lower and uppercase. 
        if cardName.lower() in row or cardName.lower() in row[1].lower():
            print(row)


"""
Nothing found if no cards is found
No difference of lowercase and uppercase
where should with be be placed?
"""
45e0f562b49fdcbf14b79a3bfacf65841195d7df
<mask token>

<mask token>
for row in csv_file:
    if len(row) > 1:
        if cardName.lower() in row or cardName.lower() in row[1].lower():
            print(row)
<mask token>

<mask token>
cardName = input('Enter part of name to find\n')
csv_file = csv.reader(open('MunchkinTreasureCards.csv', 'r'), delimiter=',')
for row in csv_file:
    if len(row) > 1:
        if cardName.lower() in row or cardName.lower() in row[1].lower():
            print(row)
<mask token>

import csv
cardName = input('Enter part of name to find\n')
csv_file = csv.reader(open('MunchkinTreasureCards.csv', 'r'), delimiter=',')
for row in csv_file:
    if len(row) > 1:
        if cardName.lower() in row or cardName.lower() in row[1].lower():
            print(row)
<mask token>

import csv

#input number you want to search
cardName = input('Enter part of name to find\n')

#read csv, and split on "," the line
csv_file = csv.reader(open('MunchkinTreasureCards.csv', "r"), delimiter=",")

#loop through the csv list
for row in csv_file:
    if len(row) > 1: #checking for empty rows
    #if input is equel to anything in the file, then it is returned. lower() makes sure it does not distinguish between lower and uppercase. 
        if cardName.lower() in row or cardName.lower() in row[1].lower():
            print(row)


"""
Nothing found if no cards is found
No difference of lowercase and uppercase
where should with be be placed?
"""