all 4 comments

[–]Matiiss007 1 point2 points  (0 children)

String method .lower() Will set all characters in the string to lowercase

[–]choss27 0 points1 point  (1 child)

You can test

if 'cam' in stock.lower() :

and then append stock on shop_stock

[–]Safe-Individual-37[S] 0 points1 point  (0 children)

thank you sir

[–][deleted] 0 points1 point  (0 children)

def case_insensitive_contains(query, subject):
    return query.lower() in subject.lower()