<jupyter_start><jupyter_text>**Task 2** With Numpy presets<jupyter_code>import numpy as np

K = np.array([1,2,3,4,5])
L = np.array([6,7,8,9,10])
D = np.array([11,12,13,14,15])
B = np.array([16,17,18,19,20])
A = np.array([21,22,23,24,25])

print("*************************************************")
print("Dot Product of the first two vector: ")
ivKL = np.inner(K,L)
print(ivKL)
print("*************************************************")


print("Dot Product of the second two vector: ")
ivLD = np.inner(L,D)
print(ivKL)
print("*************************************************")


print("Dot Product of the third two vector: ")
ivDB = np.inner(D,B)
print(ivDB)
print("*************************************************")


print("Dot Product of the fourth two vector: ")
ivBA = np.inner(B,A)
print(ivBA)
print("*************************************************")<jupyter_output>*************************************************
Dot Product of the first two vector: 
130
*************************************************
Dot Product of the second two vector: 
130
*************************************************
Dot Product of the third two vector: 
1180
*************************************************
Dot Product of the fourth two vector: 
2080
*************************************************<jupyter_text>**Without Numpy presets**<jupyter_code>K = [1,2,3,4,5]   #vectors
L = [6,7,8,9,10]
D = [11,12,13,14,15]
B = [16,17,18,19,20]
A = [21,22,23,24,25]

def dot(K,L):                                     #function
    return sum(x*y for x,y in zip(K,L))

def dot(L,D):
    return sum(x*y for x,y in zip(L,D))

def dot(D,B):
    return sum(x*y for x,y in zip(D,B))

def dot(B,A):
    return sum(x*y for x,y in zip(B,A))



print("The first two vectors are: " , K, "and" , L)
print("The dot product of the first vector is", dot(K,L))
print("*************************************")

print("The second two vectors are: " , L, "and" , D)
print("The dot product of the first vector is", dot(L,D))
print("*************************************")

print("The third two vectors are: " , D, "and" , B)
print("The dot product of the first vector is", dot(D,B))
print("*************************************")

print("The fourth two vectors are: " , B, "and" , A)
print("The dot product of the first vector is", dot(B,A))
print("*************************************")<jupyter_output>The first two vectors are:  [1, 2, 3, 4, 5] and [6, 7, 8, 9, 10]
The dot product of the first vector is 130
*************************************
The second two vectors are:  [6, 7, 8, 9, 10] and [11, 12, 13, 14, 15]
The dot product of the first vector is 530
*************************************
The third two vectors are:  [11, 12, 13, 14, 15] and [16, 17, 18, 19, 20]
The dot product of the first vector is 1180
*************************************
The fourth two vectors are:  [16, 17, 18, 19, 20] and [21, 22, 23, 24, 25]
The dot product of the first vector is 2080
*************************************
{'fraction_non_alphanumeric': 0.3855946398659966, 'fraction_numerical': 0.05963149078726968, 'mean_word_length': 5.8173515981735155, 'pattern_counts': {'":': 0, '<': 7, '<?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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '354439', 'license': 'Apache-2.0', 'n_tokens_mistral': 1079, 'n_tokens_neox': 930, 'n_words': 312, 'path': '201911167_LinAlg4_1_Bruan.ipynb', 'repo_name': 'R0ckie/Laboratory-4', 'size': '2985'}