• 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
PythonicJeb Avatar
Name:Unknown
Clan:Unknown
Member Since:May 2017
Last Seen:Mar 2020
Profiles:
    Following:1
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (10)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • mattdivs
      • commented on "Descending Order" python solution
      • 3 years ago

      Than you, for not convert it to numbers again.

      Well, I was convert it to string again, after I sorted numbers.

      But, according to python docs:

      **sort(): Strings are sorted alphabetically, and numbers are sorted numerically.**
      

      So it's unnecessary to try to convert it to a number again. because sort() and sorted() do the same thing with integers and strings, but only if both are numbers.

    • Custom User Avatar
      • swarupsarangi113
      • commented on "Descending Order" python solution
      • 5 years ago

      What join() basically do is it takes all items in an list/array and joins them into one string separated by the whatever character you have specified in between the ' ' in ''.join().

      Sometimes it can be an empty string which means all the items in the list will be joined and there will be no spaces in between them as shown in the code above you have shared.

      For example :

      >>> list1 = ['a','b','c','d']
      >>> '-'.join(list1)
      'a-b-c-d'
      
      >>> ''.join(list1)
      'abcd'
      
    • Custom User Avatar
      • First_Kata
      • commented on "Descending Order" python solution
      • 5 years ago

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

    • Custom User Avatar
      • Hunahpu
      • commented on "Remove String Spaces" python solution
      • 5 years ago

      yes, s for s in x

    • Custom User Avatar
      • pprunesquallor
      • commented on "Remove String Spaces" python solution
      • 8 years ago

      Does this iterate over each letter in the string?

    • Custom User Avatar
      • lechevalier
      • commented on "Give me a Diamond" python solution
      • 8 years ago

      And you are right! Don't learn Python 2 except if you need a tierce library not compatible with Python 3.

    • Custom User Avatar
      • PythonicJeb
      • commented on "Give me a Diamond" python solution
      • 8 years ago

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

    • Custom User Avatar
      • lechevalier
      • commented on "Give me a Diamond" python solution
      • 8 years ago

      I precise this solution works only with Python 2, try to find why ;-)

    • Custom User Avatar
      • PythonicJeb
      • commented on "Give me a Diamond" python solution
      • 8 years ago

      I think I picked up about 3 tricks with that. Very nice and concise.

    • Custom User Avatar
      • PythonicJeb
      • commented on "Shortest Word" kata
      • 8 years ago

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

    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...