<jupyter_start><jupyter_text>List Comperhensions<jupyter_code>lst = [x for x in 'word']
lst
lst = [x**2 for x in range(11)]
lst
lst = [x+1 for x in [2,3,4,5]]
lst
lst = [x for x in range(11) if x%2 == 0]
lst
celsius = [0, 10 , 20, 34.5, 100]
farenheight = [((9/5)*temp +32) for temp in celsius]
farenheight<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16964285714285715, 'fraction_numerical': 0.08035714285714286, 'mean_word_length': 5.017857142857143, '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': '234551', 'license': 'MIT', 'n_tokens_mistral': 168, 'n_tokens_neox': 153, 'n_words': 46, 'path': '14 list comperhensions.ipynb', 'repo_name': 'avisalmon/PythonPath', 'size': '336'}