<jupyter_start><jupyter_text><NAME> 20120612027 Email;<EMAIL>  Exercise 1 A python exercise to get the difference between a given number and 17.If the number is greater than 17,return double the absolute difference ![First image](images/Exercise1.png)<jupyter_code>number=int(input("Pick a random number"))
new_number=number-17
if number>17:
    print(2*abs(new_number))
else:
    print(abs(new_number))<jupyter_output><empty_output><jupyter_text>Exercise 2 A python program to calculate the sum of three given numbers,if the values are equal then return thrice of their sum. ![Second image](images/Exercise2.png)<jupyter_code>a=int(input("Pick your first number"))
b=int(input("Pick your second number"))
c=int(input("Pick your third number"))

if a==b==c:
    d=a+b+c
    print(d*3)
else:
    d=a+b+c
    print(d)<jupyter_output><empty_output><jupyter_text>Exercise 3 To write a python program which will return true if the two given integer values are equal or their sum or difference is 5. ![Third image](images/Exercise3.png)<jupyter_code>a=int(input("Input first number"))
b=int(input("Input second number"))
if a==b or a+b==5 or a-b==5:
    print(True)<jupyter_output><empty_output><jupyter_text>Exercise 4 To write a python program to sort three integers without using conditional statements and loops ![Fourth image](images/Exercise4.png)<jupyter_code>a=int(input("Input first number"))
b=int(input("Input second number"))
c=int(input("Input third number"))

list=[a,b,c]
maximum=(max(list))
minimum=(min(list))
sum=a+b+c
middle=sum-maximum-minimum
print(middle)<jupyter_output><empty_output><jupyter_text>Exercise 5 To 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 ![Fifth image](images/Exercise5.png)<jupyter_code>x=int(input("Insert Positive Integer number"))
def numbercube(x):
    cube=range(1,x)
    result=0
    for i in cube:
        result=result+(i**3)
    if x >=0:
        print (result)
    else:
        print("error")
            
numbercube(x)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1185149928605426, 'fraction_numerical': 0.018086625416468348, 'mean_word_length': 5.846905537459284, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, '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': '331531', 'license': 'MIT', 'n_tokens_mistral': 730, 'n_tokens_neox': 676, 'n_words': 202, 'path': 'lab-exercise-1.ipynb', 'repo_name': 'Anjie-max/anjolajubaCSC102', 'size': '2138'}