Skip to main content
⚑
← Coursesβ€ΊCreative ChallengesModule 8 Β· 🎯 Performance Showdowns (10)β€ΊπŸŽ― Showdown #01: Membership test list vs setwrite71 / 100
πŸ’¬ DiscussπŸ§ͺ Playground+125 XP
Task
πŸ“ **Task:** Build a `set` from the haystack and check membership. Print `True` if `needle` is in it. πŸ“‹ Implement the function above. Tests run automatically. πŸ’‘ **Hint:** Re-read the theory if stuck.

Keep going

✏️ Write your code here
🐍
Loading Python...
First visit only β€” ~5-10s. Stays cached afterward.
πŸ“Š Result
Press Run to see result...
πŸ“£ Help someone learn PythonShare this lesson with a friend β€” the first 15 are free, no signup.Tweet

πŸ’¬ Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…