def plus_ten(x):
return x+10
lambda x : x+10
map(lambda x: (매개변수)x (식1)str(x) if (조건식1)x%3==0 else (식2)x,a))
#map
print(list(map(lambda x:x+10, [1,2,3])))
print(list(map(lambda x: str(x) if x%3==0 else x,a))
a = [1,4,8,7,12,14,17,27]
print(list(filter(lambda x:x%10 ==7 , a)))
files = ['font', '1.png', '10.jpg', '11.gif', '2.jpg', '3.png', 'table.xslx', 'spec.docx']
print(list(filter(lambda x: x.find('.png')==True or x.find('.jpg')==True , files )))
==========================
['1.png', '10.jpg', '2.jpg', '3.png']