In the User Churn project with “Codeflix”, the last task is a bonus question:
Q: “How would you modify this code to support a large number of segments”
A: “Avoid hard coding the segment numbers”
… can anyone explain what this actually means and what the actual code changes would be?
Thanks!