<jupyter_start><jupyter_text>a python function that takes a list and returns a new list with unique elements of the first list<jupyter_code>def unique_list(l):
    x = []
    for a in l:
        if a not in x:
            x.append(a)
    return x
print(unique_list(input('Enter a list: ')))<jupyter_output>Enter a list: water
['w', 'a', 't', 'e', 'r']<jupyter_text>a python function that reverses a string.<jupyter_code>def string_reverse(str1):
    rstr1 = ''
    index = len(str1)
    while index > 0:
        rstr1 += str1[ index - 1 ]
        index = index - 1
    return rstr1
print(string_reverse(input('enter a string: ')))<jupyter_output>enter a string: keisha is a big mumu
umum gib a si ahsiek<jupyter_text>python function that checks whether a passed string is palindrome or not<jupyter_code>def isPalindrome(string):
    left_pos = 0
    right_pos = len(string) - 1
    while right_pos >= left_pos:
        if not string[left_pos] == string[right_pos]:
            return False
        left_pos += 1
        right_pos -= 1
    return True
print(isPalindrome(input('enter a word: ')))<jupyter_output>enter a word: poop
True
{'fraction_non_alphanumeric': 0.10405643738977072, 'fraction_numerical': 0.01146384479717813, 'mean_word_length': 3.3155893536121672, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 12, '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': '444082', 'license': 'MIT', 'n_tokens_mistral': 397, 'n_tokens_neox': 388, 'n_words': 123, 'path': 'functions exercise.ipynb', 'repo_name': 'brunoasika/brunoCSC102', 'size': '1134'}