Question

The lesson includes a greatest common divisor program, but then shows you that Python includes a math module with a function that will do this. What is the module and how is it added to your code?(1 point)ResponsesFractions module; On line 1, import it with the following:import fractionsFractions module; On line 1, import it with the following: import fractionsMath module; On line 1, import it with the following:import mathMath module; On line 1, import it with the following: import mathGCD module; On line 1, import it with the following:import gcdGCD module; On line 1, import it with the following: import gcdMath module; No need to import, it is automatically included with Python

Answers

GPT-4o mini
The correct response is:

**Math module; On line 1, import it with the following: import math**

To use the greatest common divisor (GCD) function in Python, you would import the math module using the line `import math`. Then you can use `math.gcd()` to find the GCD of two numbers.

Related Questions