• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
Sebbe Avatar
Name:Sebastian Paaske Tørholm
Clan:DIKU
Member Since:Apr 2014
Last Seen:Aug 2015
Profiles:
Following:18
Followers:22
Allies:18
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (16)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • daniel-ob
    • commented on "List Filtering" python solution
    • 2 years ago

    Kata says function "takes a list of non-negative integers and strings"

  • Custom User Avatar
    • Desa666
    • commented on "List Filtering" python solution
    • 3 years ago

    it should be non-negative...

  • Custom User Avatar
    • Fill Freakin
    • commented on "List Filtering" python solution
    • 4 years ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • Kjwon15
    • commented on "List Filtering" python solution
    • 6 years ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • tacoicy
    • commented on "List Filtering" python solution
    • 6 years ago

    Thanks, I must not have noticed this :)

  • Custom User Avatar
    • user9843686
    • commented on "List Filtering" python solution
    • 6 years ago

    "a list of non-negative integers and strings" states clearly that this list can only contain non-negative integers or strings, nothing else :)

  • Custom User Avatar
    • tacoicy
    • commented on "List Filtering" python solution
    • 7 years ago

    What if one of the elements is a float or boolean?

  • Custom User Avatar
    • artbohr
    • commented on "Largest Elements" python solution
    • 7 years ago

    that ; is disturbing :D

  • Custom User Avatar
    • tedmiston
    • commented on "Largest Elements" python solution
    • 8 years ago

    Ut oh a ; found it's way into our beautiful Python code :o

  • Custom User Avatar
    • Azuaron
    • commented on "Sorting Dictionaries" python solution
    • 11 years ago

    I tend to use itemgetter because it's cleaner code than the lambda.

  • Custom User Avatar
    • scowcron
    • commented on "Sorting Dictionaries" python solution
    • 11 years ago

    I'm happy with either solution. In most cases, I'd probably just use the lambda rather than itemgetter unless I knew I'd be working with a large dataset, but either way works fine. itemgetter turns out to be a little bit less expensive, time wise, and you only have to pay the import cost once, so I decided to run with that instead of the lambda.

  • Custom User Avatar
    • EhsanKia
    • commented on "Sorting Dictionaries" python solution
    • 11 years ago

    itemgetter is always such a dilemma for it.
    I like how clean and nice it is, but I almost never
    use it because adding a whole import just for it feels silly,
    especially since lambda x: x[n] is just as long anyway.

  • Custom User Avatar
    • xcthulhu
    • resolved an issue on "By the Power Set of Castle Grayskull" kata
    • 11 years ago

    Okay, I'm closing this issue now.

  • Custom User Avatar
    • dcorking
    • commented on "By the Power Set of Castle Grayskull" kata
    • 11 years ago

    @Sebbe The author wrote this elsewhere, which I think answers your question:

    "In Javascript/Coffeescript, you will need to use a nested Array.

    In Python, you can use nested lists, nested sets, generators of generators, I wrote it to be pretty flexible."

  • Custom User Avatar
    • xcthulhu
    • commented on "By the Power Set of Castle Grayskull" kata
    • 11 years ago

    Please close this issue.

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...