Quiz Question 1 of 5
If a new color is added to the colors.py
module, which strategy would prevent unintended side effects when integrating this change into an existing large-scale web project?
Choose the correct answer below:
-
A
Use the name == "main" condition to test the new color's behavior independently before applying it in the project.
-
B
Implement the new color within a new function, ensuring it doesn't interfere with existing ones, and thoroughly document the change.
-
C
Directly replace an existing color variable with the new color to see immediate effects and adjust as necessary.
-
D
Add the new color as a variable at the beginning of the module and ensure it’s not called by any existing functions.