Quiz Question 1 of 5
Which of the following scenarios might lead to a name collision when working with imported Python modules?
Choose the correct answer below:
-
A
Using
from math import *
in a script and later definingcos
as a local function. -
B
Importing a module with
import math
and redefiningmath.pi
in the script. -
C
Importing a module twice in the same script, leading to redundant imports.
-
D
Using
import math
and defining a function namedpi()
in the same script.