1.
What is the output of the following Python code:
dict1 = {
    'joe': 40,
    'deo': 50
}
dict2 = {
    'deo': 50,
    'joe': 40

}
print(dict1 == dict2)
2.
What is the output of the following Python code:
d = {
    'a': 1,
    'b': 2
}
print(list(d.keys()))
3.
In Python, what is the main difference between a dictionary and a list?
4.
What is the output of the following Python code:
b = 0
for a in range(0, 5, 2):
    b += a + 1
print(b)
5.
What is the output of the following Python code:
def mys(n):
    m = 0
while n > 0:
    m = 10 * m + n % 10
n = n // 10
return m
print(mys(8990))
6.
What is the output of the following Python code:
x = [0, 10, 20, 30, 40]
y = [0, 7, 8, 9]
z = x
x[0] += 1000
y[0] += 2000
z[0] -= 500
z = y
z[0] += 1000
print(z)
7.
For the following Python code, which of the following options creates an instance of Test correctly:
class Test(object):
    def __init__(self, x):
    self.x = x
self.weight = 200

t = Test(100, 200)
print(t.x)
print(t.weight)
8.
What is the output of the following Python code:
def test(x):
    x[0] = 5
y = [0]
test(y)
print(y)
9.
What is the output of the following Python code:
x = 0
try:
x = 4 + 4
except:
    x = 5 + 5
else :
    x += 1
finally:
print(x)
10.
What is the output of the following Python code:
i = 15
while True:
    if i % 17 == 0:
    break
print(i)
i += 1