Select the correct function#

Part 1#

What line of code will call the force function with a value of {{ params.vars.random_mass }} for mass and a value of {{ params.vars.random_accel }} for acceleration?

def force(mass, acceleration):
    force_val = mass*acceleration
    return force_val

Answer Section#

  • force(27, 11.0)

  • force(11.0, 27)

  • force(mass=27, 11.0)

  • force(acceleration=27, 11.0)

  • force(27, mass=11.0)

Attribution#

Problem is licensed under the CC-BY-NC-SA 4.0 license.
The Creative Commons 4.0 license requiring attribution-BY, non-commercial-NC, and share-alike-SA license.