randomList = ['Test', 'Random', 'Orange', 'Blue', 'Rabbit', 'Best']
search = input('Search: ')

#Without lambda
woLambdaList = []

for item in randomList:
    if search.lower() in item.lower():
        woLambdaList.append(item)

print('Without lambda: ', woLambdaList)

#With lambda
lambdaList = list(filter(lambda i: search.lower() in i.lower(),randomList))
print('With lambda: ', lambdaList)
f5cd5c28bc0c7c7892ddd1c25bffa9e65d5fa8c4
<mask token>

<mask token>
for item in randomList:
    if search.lower() in item.lower():
        woLambdaList.append(item)
print('Without lambda: ', woLambdaList)
<mask token>
print('With lambda: ', lambdaList)

randomList = ['Test', 'Random', 'Orange', 'Blue', 'Rabbit', 'Best']
search = input('Search: ')
woLambdaList = []
for item in randomList:
    if search.lower() in item.lower():
        woLambdaList.append(item)
print('Without lambda: ', woLambdaList)
lambdaList = list(filter(lambda i: search.lower() in i.lower(), randomList))
print('With lambda: ', lambdaList)

randomList = ['Test', 'Random', 'Orange', 'Blue', 'Rabbit', 'Best']
search = input('Search: ')

#Without lambda
woLambdaList = []

for item in randomList:
    if search.lower() in item.lower():
        woLambdaList.append(item)

print('Without lambda: ', woLambdaList)

#With lambda
lambdaList = list(filter(lambda i: search.lower() in i.lower(),randomList))
print('With lambda: ', lambdaList)