1.
You are given two python files, a.py and b.py
File: /somepath/a.py
from b
import multiply_b, print_b

def print_number(number):
    number = multiply_b(number, 4)
print number

def print_b_via_a():
    print_b()

File: /somepath/b.py
 
from a
import print_number

def print_b():
    print_number(3)

def multiply_b(number, multiplier):
    return number * multiplier

The code given below fails with the exception that follows. Why?
 
>>>
import a

ImportError: cannot
import name print_number
2.
The following piece of Python code should produce output 5. What changes should be made to the code to achieve this?
class IntComparer(object):
    ""
"Class that compares two integers."
""

def __init__(self, x, y):
    self.x = x
self.y = y

def greater(self):
    ""
"Returns the greater integer."
""

if self.x < self.y:
    return self.x
else :
    return self.y

def smaller(self):
    ""
"Returns the smaller integer."
""

numbers = [self.x, self.y]
numbers.remove(self.greater())
return numbers[0]

comparer = IntComparer(5, 9)
print(comparer.smaller())# Output should be 5
3.
What is the output of the following Python code:
def func(x, y = 5, z = 10):
    print('x: ', x, 'y: '
        y, 'z: ', z)
1: func(5, 10)
2: func(5, z = 15)
3: func(z = 5, 10)
4: func(x = 5, z = 10)