<jupyter_start><jupyter_text><NAME>  20120612039  <EMAIL>  Exercise 1Write a Python program to get the difference between a given number and 17, if the number is greater than 17 return double the absolute difference.  ![image.png](attachment:image.png)<jupyter_code>A = float(input("enter number"))
B = 17
C = A - B
C = abs(C)
print(C)<jupyter_output>enter number22
5.0<jupyter_text>Exercise 2<jupyter_code>A = float(input("enter number"))
B = float(input("enter number"))
C = float(input("enter number"))
D = A + B + C
if A == B == C:
    print(3*D)
else:
    print(D)<jupyter_output>enter number2
enter number2
enter number2
18.0<jupyter_text>Exercise 3<jupyter_code>A = int(input("enter number"))
B = int(input("enter number"))
if A == B:
    print("TRUE")
else:
    print("FALSE")
if A + B == 5:
    print("TRUE")
else:
    print("FALSE")<jupyter_output>enter number1
enter number2
FALSE
FALSE<jupyter_text>Exercise 4<jupyter_code>A = int(input("enter number"))
B = int(input("enter number"))
C = int(input("enter number"))
print("The maximum value is",(max(A, B , C)))
print("The minimum value is",(min(A, B, C)))
print("The middle value is",(A+B+C - min(A, B, C) - max(A, B, C) ))<jupyter_output>enter number1
enter number2
enter number3
The maximum value is 3
The minimum value is 1
The middle value is 2<jupyter_text>Exercise 5<jupyter_code>a = int(input("enter number"))
R = list(range(a))
x = 0
for i in R:
    z = i**3
    x = x + z
print(x)<jupyter_output>enter number3
9
{'fraction_non_alphanumeric': 0.14834794335805798, 'fraction_numerical': 0.031018206338503034, 'mean_word_length': 5.235294117647059, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '518748', 'license': 'MIT', 'n_tokens_mistral': 588, 'n_tokens_neox': 557, 'n_words': 164, 'path': 'lab-exercise-I.ipynb', 'repo_name': 'Leslie-17/LeslieCSC102', 'size': '1513'}