• 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
sfr Avatar
Name:Unknown
Clan:Unknown
Member Since:Sep 2015
Last Seen:Mar 2025
Profiles:
Following:1
Followers:0
Allies:0
View Profile Badges
Ad
How many Kata did you complete in 2024?
Discover our top moments in 2024 and how you can level up in 2025.
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (254)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • AaronRaje88
    • commented on "Double Char" python solution
    • 28 days ago

    Because for char in s, we are iterating over each character in the string s, and for each character c, we are multiplying it by 2 (c * 2) to create a new string with the character repeated twice. The join() method is then used to concatenate all the doubled characters into a single string.

  • Custom User Avatar
    • trashy_incel
    • commented on "Round by 0.5 steps" python solution
    • 2 months ago

    see the comments below. this solution was written in Pyrthon 2. Python 3 changed the round() function for halfway cases: it used to be half away from zero (0.5 --> 1, 1.5 --> 2), now it's half towards the nearest even integer (the so-called "banker's rounding"): (0.5 --> 0, 1.5 --> 2)

  • Custom User Avatar
    • _Maikha_
    • commented on "Round by 0.5 steps" python solution
    • 2 months ago

    How come when I did it it was incorrect????
    Which verion did you do?

  • Custom User Avatar
    • Morettivns
    • commented on "Jaden Casing Strings" python solution
    • 3 months ago

    Really good to know that this exist.

  • Custom User Avatar
    • maroun_aj
    • commented on "Find the odd int" python solution
    • 3 months ago

    not efficient

  • Custom User Avatar
    • oldspak
    • commented on "Jaden Casing Strings" python solution
    • 3 months ago

    Nice!

  • Custom User Avatar
    • rorzor
    • commented on "Find the odd int" python solution
    • 3 months ago

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

  • Custom User Avatar
    • matilozano96
    • commented on "Find the odd int" python solution
    • 3 months ago

    Less lines of code = better

    duh

  • Custom User Avatar
    • curiousgeorgiou
    • commented on "Double Char" python solution
    • 4 months ago

    This is really quite novel. Nice!

  • Custom User Avatar
    • curiousgeorgiou
    • commented on "Double Char" python solution
    • 4 months ago

    It's not dissimilar to a 'for' loop with a list. Think of it as 'for [any item] in [what I'm telling you to look at]'.

    In this case we're telling the program to look at a string, so the 'any item' is just 'any/each individual letter'. 'C' is simply a placeholder for that.

    I appreciate this is checks watch 11 months late, but I hope it helps if you ever return here!

  • Custom User Avatar
    • big_M
    • commented on "Find the odd int" python solution
    • 5 months ago

    how did such a suboptimal solution get to the top?

  • Custom User Avatar
    • pablo727
    • commented on "Jaden Casing Strings" python solution
    • 5 months ago

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

  • Custom User Avatar
    • KatyKv
    • commented on "Convert a Boolean to a String" python solution
    • 6 months ago

    That's brilliant! I would have never thought of that myself!

  • Custom User Avatar
    • laptunia
    • commented on "Convert a Boolean to a String" python solution
    • 6 months ago

    dope!, this was my first thought but it felt too easy and I doubted mysefl.

  • Custom User Avatar
    • STM_QQ
    • commented on "Find the odd int" python solution
    • 8 months ago

    xor solution is n. Most efficient

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...