<jupyter_start><jupyter_text>PyLint<jupyter_code>%%writefile prime_num.py
'''
This is a module to check whether the given number is even or odd.''
'''
def prime(num):
    '''
    This is the function to check the given number is even or odd.
    '''
    if num > 1:
        for i in range(2, num):
            if (num % i) == 0:
                break
            return print("This is a Prime Number")
    return print("This is not a Prime Number")
n = int(input("Enter the number :"))
prime(n)
! pylint "prime_num.py"<jupyter_output>--------------------------------------------------------------------

Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)<jupyter_text>Unit test<jupyter_code>%%writefile capitalizeText.py

def capText(string_To_Cap):
    return string_To_Cap.title()
%%writefile test.py
'''
this is the test file in which we are going to check the py file with the help of unittest
'''
import unittest
import capitalizeText

class testPrimeNumber(unittest.TestCase):
    def testOne(self):
        result = capitalizeText.capText("Suganthy")
        self.assertEqual(result,"Suganthy") 
    def testSecond(self):
        result = capitalizeText.capText("this is a text to test the unittest in a file")
        self.assertEqual(result,"This Is A Text To Test The Unittest In A File")
        
if __name__ == "__main__":
    unittest.main()
! python test.py<jupyter_output>..
----------------------------------------------------------------------
Ran 2 tests in 0.001s

OK
{'fraction_non_alphanumeric': 0.18816489361702127, 'fraction_numerical': 0.015292553191489361, 'mean_word_length': 2.2860262008733625, 'pattern_counts': {'":': 1, '<': 7, '<?xml version=': 0, '>': 8, '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': '182568', 'license': 'Apache-2.0', 'n_tokens_mistral': 465, 'n_tokens_neox': 443, 'n_words': 151, 'path': 'Day 9 Assign 1.ipynb', 'repo_name': 'sug15/LetsUpgrade-Python-Essentials-B7-Day-9', 'size': '1504'}