• 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
jsburton Avatar
Name:Joshua Burton
Clan:Unknown
Member Since:Jul 2024
Last Seen:Aug 2024
Profiles:
Following:1
Followers:1
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (7)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • amallya88
    • commented on "Reverse words" python solution
    • 7 months ago

    no it works for all kinds of words. the reason it works is calling split(' ') on strings with double or arbitrarily spaced characters produced empty strings in the return value, and when you call .join() all the empty strings are joined back with spaces between them. the empty strings from splitting multi-spaced strings act as placeholders for when the string is re-formed so the spacing is preserved

  • Custom User Avatar
    • jsburton
    • commented on "Sum of the first nth term of Series" python solution
    • 11 months ago

    Wow, what a solution! I love one liners and it looks clean!

  • Custom User Avatar
    • jsburton
    • commented on "Beginner Series #3 Sum of Numbers" python solution
    • 11 months ago

    Clear and concise! I love it. Much cleaner than my own.

  • Custom User Avatar
    • jsburton
    • commented on "Opposites Attract" python solution
    • 11 months ago

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

  • Custom User Avatar
    • jsburton
    • commented on "Descending Order" python solution
    • 11 months ago

    Very simple and clean. Easily the best practice and I learned a lot from this.

  • Custom User Avatar
    • jsburton
    • commented on "Reverse words" python solution
    • 11 months ago

    This is a great solution for double and single spaces! But for anything more you'll need to utilize RegEx

  • Custom User Avatar
    • JesusRodriguezDev
    • commented on "Test Kumite (Josh v Jesus)" kumite
    • 11 months ago

    This comment has been deleted.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...