Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by nusl

4 hours ago

Why would you modify the original list and return it with the second example? Honestly the first is better

2 comments

nusl

Reply

highphive  4 hours ago

The question isn't really what's better practice, the question is whether the code follows the prompt. The first example does not.

  • huflungdung  4 hours ago

    [dead]

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities