Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.Start 7-day trial →
⚡
← Courses›Interview PrepModule 6 · Concurrency, OS, ML Interview Topics›

Design patterns: Strategy

quiz98 / 104
+100 XP
Task
📝 **Question:** When each algorithm is a single operation, what is the lightest idiomatic way to implement the Strategy pattern in Python? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
🎯 Quiz

Question

📝 **Question:** When each algorithm is a single operation, what is the lightest idiomatic way to implement the Strategy pattern in Python? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.