<jupyter_start><jupyter_text>Lesson 2: In-class exercises---<NAME> (http://sarahmid.github.io/)http://github.com/sarahmid/python-tutorials **Instructions: For each problem, write code in the provided code block. Don't forget to run your code to make sure it works.** ---**1. Warm up review for lesson 2**Write code to accomplish the following tasks using the concepts from Lesson 2. These exercises will use the following variables (make sure to run this block of code first to initiate these variables):<jupyter_code># RUN THIS BLOCK FIRST!
num1 = 3.14159
num2 = 6
num3 = 100
motif = "GTAAGTC"<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09935897435897435, 'fraction_numerical': 0.027243589743589744, 'mean_word_length': 4.9523809523809526, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '389530', 'license': 'MIT', 'n_tokens_mistral': 206, 'n_tokens_neox': 183, 'n_words': 78, 'path': 'exercises/Lesson2_exercises.ipynb', 'repo_name': 'sarahmid/python-for-genomics-miniseries', 'size': '633'}