Cooperative Learning Question (5 points)

On a piece of paper write your NAME, SECTION and the DATE

  1. You see the statement in a program
    dist = sqrt(a + b)
    Write the import statement that must have preceded this statement. (two different answers possible)
    ANSWER: from math import sqrt or from math import *
  2. You see the statement in a program
    lngth = math.sqrt(alpha) + math.sqrt(beta)
    Write THE import statement that must have preceded this statement. (only one answer possible)
    ANSWER: import math

Note that all that is asked for is the import statement.

Then spend 2 minutes talking to your neighbor about the questions. Convince them your answer is right if you can! Change your answers if you want to.

Remember to turn the paper in when requested for attendance.