<jupyter_start><jupyter_text>Assignment 1<jupyter_code>import unittest
def is_prime(number):
    """Return True if *number* is prime."""
    for element in range(number):
        if number % element == 0:
            return False

    return True


class PrimesTestCase(unittest.TestCase):
    """Tests for `primes.py`."""

    def test_is_five_prime(self):
        """Is five successfully determined to be prime?"""
        self.assertTrue(is_prime(5))

if __name__ == '__main__':
    unittest.main()<jupyter_output><empty_output><jupyter_text>Assignment 2<jupyter_code>def isArmstrong():
    for num in range(1, 1001):
        order = len(str(num))
        sum = 0
        temp = num
        while temp > 0:
          digit = temp % 10
          sum += digit ** order
          temp //= 10

        if num == sum:
          yield(num)
   
for i in isArmstrong():
    print(i)<jupyter_output>1
2
3
4
5
6
7
8
9
153
370
371
407
{'fraction_non_alphanumeric': 0.11555075593952484, 'fraction_numerical': 0.038876889848812095, 'mean_word_length': 2.4849624060150375, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '116825', 'license': 'Apache-2.0', 'n_tokens_mistral': 334, 'n_tokens_neox': 311, 'n_words': 87, 'path': 'Assignment_Day_9.ipynb', 'repo_name': 'mdayaan-21/letsupgrade-python', 'size': '926'}