<jupyter_start><jupyter_text>lambda expressions, Map & Filter<jupyter_code>def times2(var):
    return var*2
times2(2)
lambda var: var*2
seq = [1,2,3,4,5]
map(times2,seq)
list(map(times2,seq))
list(map(lambda var: var*2,seq))
filter(lambda item: item%2 == 0,seq)
list(filter(lambda item: item%2 == 0,seq))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17313432835820897, 'fraction_numerical': 0.050746268656716415, 'mean_word_length': 8.882352941176471, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '249506', 'license': 'Apache-2.0', 'n_tokens_mistral': 145, 'n_tokens_neox': 142, 'n_words': 26, 'path': 'Lambda Map.ipynb', 'repo_name': 'Sagnik001/Introduction-to-Python', 'size': '335'}