Assignment 1

Multiplication

Q1: $103 \times 89$

Q2: $103 \times 108$

Q3: $95 \times 108$

Q4: $89 \times 109$

Q5: $91 \times 91$ Yash

Q6: $79 \times 91$ Aakash

Q7: $69 \times 87$ Simran

Q8: $88 \times 88$ Sameer

Yash total 20 | a*b | a = [75-95], b = [101-121]

Sameer total 20 | a*b | a = [85-105], b = [78-115]

Aakash total 20 | a*b | a = [77-99], b = [101-130]

Simran total 20 | a*b | a = [69-99], b = [75-112]


In [106]:
def get_pair_numbers():
    import random
    random.seed()
    set1 = [random.randint(76, 115) for _ in range(1,21 ,1)]
    random.seed()
    set2 = [random.randint(76, 115) for _ in range(1,21 ,1)]
    return [(a,b) for (a,b) in zip(set1, set2)]

In [107]:
[print(str(a) + " x " + str(b)) for (a,b) in get_pair_numbers()]


100 x 98
107 x 97
79 x 105
78 x 108
102 x 91
111 x 104
103 x 101
114 x 96
84 x 103
80 x 86
89 x 91
93 x 97
80 x 83
105 x 112
100 x 79
98 x 92
115 x 100
79 x 103
89 x 88
107 x 101
Out[107]:
[None,
 None,
 None,
 None,
 None,
 None,
 None,
 None,
 None,
 None,
 None,
 None,
 None,
 None,
 None,
 None,
 None,
 None,
 None,
 None]