1.
def print_numbers( * numbers):
    for number in numbers:
    print(number)

print_numbers(2, 3, 5, 6)
2.
What is the output of the following Python code:
def foo(x):
    y = x
return id(y)
q = ['pqr', 'mno']
print(id(q) == foo(q))
3.
What is the output of the following Python code:
def foo(i, a = []):
    a.append(i)
return a
for i in range(3):
    b = foo(i)
print(b)
4.
What is the output of the following Python code:
def max(lis):
    ""
"Accepts a list of integers and returns the maximum value"
""

def min(lis):
    ""
"Accepts a list of integers and returns the minimum value"
""

def executor(func, lis):
    print(func(lis))

executor(max, [4, 5, 6])
executor(min, [3, 2, 1])
5.
What is the output of the following Python code:
def foo():
total += 1
return total
total = 0
print(foo())
6.
What is the output of the following Python code:
def foo(i, x = []):
    x.append(i)
return x
for i in range(2):
    print(foo(i))
7.
Select the correct option:
class BananaDoesNotExistException(Exception):
    pass

def get_banana_color(d):
    if 'banana' in d:
    return d['banana']
raise BananaDoesNotExistException()

try:
d = {
    'apple': 'red',
    'orange': 'orange',
    'guava': 'yellow'
}
b_color = get_banana_color(d)
except BananaDoesNotExistException:
    print('Banana not found')
d['banana'] = 'yellow'
else :
    print(d['banana'])
8.
What is the output of the following python code:
a = (1, 2, 3)
try:
a[0] = 4
print(a)
except:
    a = list(a)
a[0] = 4
print(a)
finally:
a[1] = 5
print(a)
9.
Select the correct option:
class BananaDoesNotExistException(Exception):
    pass

def get_banana_color(d):
    if 'banana' in d:
    return d['banana']
raise BananaDoesNotExistException()

try:
d = {
    'apple': 'red',
    'orange': 'orange',
    'guava': 'yellow'
}
b_color = get_banana_color(d)
except BananaDoesNotExistException:
    print('Banana not found')
d['banana'] = 'yellow'
else :
    print(d['banana'], 'from else block')
finally:
print(d['banana'], 'from finally block')
10.
What is the output of the following Python code:
def foo():
    try:
    print(2)
finally:
print(3)
foo()