<jupyter_start><jupyter_text><NAME> 20120612106 <EMAIL>  Exercise 1 Write 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:Picture5.png)<jupyter_code>a = 14
b = 17
c = a - b
if a > b:
    print (c * 2)
else:
    print (abs(c))<jupyter_output>3<jupyter_text>Exercise 2 Write a Python program to calculate the sum of three given numbers, if the values are equal then return thrice of their sum.![image.png](attachment:Picture4.png)<jupyter_code>a = 3
b = 3
c = 3 
if a == b == c:
    print (a ** 3)
else:
    print (a + b + c)<jupyter_output>27<jupyter_text>Exercise 3 Write a Python program which will return true of the two given integer values are equal or their sum or difference is 5![image.png](attachment:Picture3.png)<jupyter_code>a = 7
b = 2
if a == b:
        print (True)
elif a + b == 5:
        print (True) 
elif a - b == 5:
        print (True) 
else:
        print (False)<jupyter_output>True<jupyter_text>Exercise 4 Write a Python program to sort three integers without using conditional statements and loops.![image.png](attachment:Picture2.png)<jupyter_code>a = 8
b = 3
c = 7
lis1 = [8, 3, 7]
maximum = max(lis1)

minimum = min(lis1)

middle = (a + b + c) - maximum - minimum


print("Maximum is", maximum)
print ("Minimum is", minimum)
print ("Middle is", middle)<jupyter_output>Maximum is 8
Minimum is 3
Middle is 7<jupyter_text>Exercise 5 Write a Python function that takes a positive integer and returns the sum of the cube of all the positive integers smaller than the specified number.![image.png](attachment:Picture1.png)<jupyter_code>a = 6
d=0
for b in range(1,a):
    c = b*b*b
    d = d + c
print(d)<jupyter_output>225
{'fraction_non_alphanumeric': 0.10448608745031232, 'fraction_numerical': 0.034071550255536626, 'mean_word_length': 4.122093023255814, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 19, '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': '237794', 'license': 'MIT', 'n_tokens_mistral': 666, 'n_tokens_neox': 592, 'n_words': 226, 'path': 'lab-exercise-1.ipynb', 'repo_name': 'desolafujah/desolaCSC102', 'size': '1783'}