<jupyter_start><jupyter_text>Use comprehensions and reduce functions `sum`, `max`, `min`, `len` to answer the following questions<jupyter_code>numbers = [10, 5, 6, 6, 4, 3, 1, 0, 0, 1]
labels = ['A', 'A-', 'B+', 'B', 'B-', 'C+', 'C', 'C-', 'D', 'F']<jupyter_output><empty_output><jupyter_text>1. What is the largest value in `numbers`?2. What is the average of values in `numbers`?3. filter `numbers` keeping only numbers greater than `5`.4. Convert `numbers` to a list `stars` where each element is as many stars as the corresponding element in numbers<jupyter_code>#work here
grades = {'A': 10, 'A-': 5, 'B+': 6, 'B': 6, 'B-': 4, 'C+': 3, 'C': 1, 'C-': 0, 'D': 0, 'F': 1}<jupyter_output><empty_output><jupyter_text>5. What is the maximum value in grades?6. What is the key corresponding to this maximum value?7. What grades have values more than five?<jupyter_code>#work here<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17640573318632854, 'fraction_numerical': 0.03307607497243661, 'mean_word_length': 5.485714285714286, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '321484', 'license': 'MIT', 'n_tokens_mistral': 361, 'n_tokens_neox': 332, 'n_words': 123, 'path': '10-problem-begin.ipynb', 'repo_name': 'cmw2011/advanced-data-management-and-analytics-spring2021', 'size': '907'}