<jupyter_start><jupyter_text>1. Guess the number<jupyter_code>print("Please think of a number between 1 and 10000, both inclusive.")
upper = 10000
lower = 1
guess = rd.randint(lower,upper)

print('These are your commands. Please be careful while inputing them.')
print("l : Your number is lower than the number guessed")
print("e : Your number is equal to the number guessed")
print("u : Your number is higher than the number guessed")

while True:
    check = input(f'Is your number greater than, lesser than, or equal to { guess } ? :  ')
    
    if check in ['u', 'U']:
        lower = guess + 1
        guess = rd.randint(lower, upper)
        
    elif check in ['l', 'L']:
        upper = guess - 1
        guess = rd.randint(lower, upper)
        
    elif check in ['e', 'E']:
        print('Aha! The number you guessed was ', guess)
        break
        
    else:
        print('Please enter a valid input')<jupyter_output>These are your commands. Please be careful while inputing them.
l : Your number is lower than the number guessed
e : Your number is equal to the number guessed
u : Your number is higher than the number guessed
Is your number greater than, lesser than, or equal to 9157 ? :  l
Is your number greater than, lesser than, or equal to 3461 ? :  l
Is your number greater than, lesser than, or equal to 2264 ? :  l
Is your number greater than, lesser than, or equal to 217 ? :  u
Is your number greater than, lesser than, or equal to 225 ? :  u
Is your number greater than, lesser than, or equal to 1707 ? :  l
Is your number greater than, lesser than, or equal to 1120 ? :  u
Is your number greater than, lesser than, or equal to 1160 ? :  u
Is your number greater than, lesser than, or equal to 1214 ? :  u
Is your number greater than, lesser than, or equal to 1303 ? :  u
Is your number greater than, lesser than, or equal to 1526 ? :  l
Is your number greater than, lesser than, or equal to 1495 ? :  l
[...]<jupyter_text>2. Duplicate Removal - Sorting<jupyter_code>def lowest(arr):
    check = math.inf
    
    for i in range(len(arr)):
        if arr[i] < check:
            check = arr[i]
               
    return check
init = []

val = int(input('Enter number of elements: '))

for i in range(val):
    init.append(int(input('Enter array element: ')))

final = [0]
for i in range(len(init)):
    val = lowest(init)
    
    for j in range(len(init)):
        if init[j] == val:
            init.pop(j)
            break
            
    if val != final[-1]:
        final.append(val)

final.pop(0)
print('List without duplicates : ', final)<jupyter_output>Enter number of elements: 7
Enter array element: -5
Enter array element: -2
Enter array element: 0
Enter array element: 3
Enter array element: 5
Enter array element: -3
Enter array element: 0
List without duplicates :  [-5, -3, -2, 0, 3, 5]
{'fraction_non_alphanumeric': 0.09700176366843033, 'fraction_numerical': 0.027865961199294534, 'mean_word_length': 2.863760217983651, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, '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': '313025', 'license': 'MIT', 'n_tokens_mistral': 917, 'n_tokens_neox': 851, 'n_words': 390, 'path': 'Data Structures/DS-Lab-Eval.ipynb', 'repo_name': 'orectique/CourseWork-Sem3', 'size': '2835'}