• 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
nestedloop Avatar
Name:Unknown
Clan:YMS
Member Since:Nov 2014
Last Seen:Aug 2024
Profiles:
    Following:9
    Followers:10
    Allies:9
    View Profile Badges
    Ad
    Would You Pass the Google SQL Interview? Test Yourself with These 7 Concepts
    Study up for your next SQL interview with these interview questions.
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (34)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • tommywong-dev
      • commented on "Convert boolean values to strings 'Yes' or 'No'." python solution
      • 3 months ago

      I love how you changed the paramter to 'bool' to match the function name

    • Custom User Avatar
      • SummerTheCoder
      • commented on "Is a number prime?" python solution
      • 4 months ago

      In fact, int is already enough to remove the decimal part.

    • Custom User Avatar
      • candynerdz
      • commented on "Convert boolean values to strings 'Yes' or 'No'." python solution
      • 5 months ago

      What if instead our votes were just valued to scale with the level of a programer. I agree with you that my opinion means significantly less than someone with a higher kyu

    • Custom User Avatar
      • user8895625
      • commented on "Convert boolean values to strings 'Yes' or 'No'." python solution
      • 6 months ago

      whats the bottom line mean

    • Custom User Avatar
      • DavidKucera86
      • commented on "Convert boolean values to strings 'Yes' or 'No'." python solution
      • 8 months ago

      nice

    • Custom User Avatar
      • Misutā Robotto
      • commented on "Convert boolean values to strings 'Yes' or 'No'." python solution
      • 9 months ago

      Well, I think that's wrong: the natural incstinct as a programmer is (or should be) to made the code clear and that includes variables that should be readable, consistent vs the code and logical so others (or our future ourselves) will know what the heck was a variable for. Obviously not in a short kata nor in some conditional/bucle sentences but in long programs, right?

    • Custom User Avatar
      • rowcased
      • commented on "Convert boolean values to strings 'Yes' or 'No'." python solution
      • 12 months ago

      there's no problem? is there a problem? what is the problem?

    • Custom User Avatar
      • sergey-raspberry
      • commented on "Convert boolean values to strings 'Yes' or 'No'." python solution
      • 12 months ago

      and what's the problem if we only accept bool values?

    • Custom User Avatar
      • Sedose
      • commented on "Basic subclasses - Adam and Eve" python solution
      • 15 months ago

      yep)

    • Custom User Avatar
      • o2001
      • commented on "Basic subclasses - Adam and Eve" python solution
      • 15 months ago

      But that's being super-pedantic since you're returning a list and not an array. It's a shared description. Imo returning a tuple in this context makes more sense for Python.

    • Custom User Avatar
      • Sedose
      • commented on "Basic subclasses - Adam and Eve" python solution
      • 15 months ago

      Even though they say return array not tuple test cases are passed.
      Here you return tuple instead of array

    • Custom User Avatar
      • Sifarth Rahaman
      • commented on "Convert boolean values to strings 'Yes' or 'No'." python solution
      • 17 months ago

      Bro just needed to shorten the variable name just like the natural instinct of any programmer, also I don't know why I got sent a kyu 8 that took me seconds.

    • Custom User Avatar
      • Vraetzught
      • commented on "Convert boolean values to strings 'Yes' or 'No'." python solution
      • 2 years ago

      I think the biggest problem is (almost) everyone can vote.
      I consider myself prety much a beginner and have eroniously voted for less efficient code because I thought it was the best. Maybe only users with high kuy score should be able to vote for best practices. Or even better, active people vetted by mods.

    • Custom User Avatar
      • paingiux
      • commented on "Convert boolean values to strings 'Yes' or 'No'." python solution
      • 3 years ago

      couldn't agree more, i'm sick of people voting best practice just random stuff, the voting mechanism should be changed

    • Custom User Avatar
      • Azuaron
      • commented on "Convert boolean values to strings 'Yes' or 'No'." python solution
      • 3 years ago

      Back in the old days when many people were completing this kata, the starting code was:

      def bool_to_word(bool):
          # TODO
      

      If you edit/fork the kata and look at the "Complete Solution", you'll see the legacy of this format is still in place (it's just in a non-public location).

      Most kata writers don't bother changing given variable names, since that's not part of the "problem" we're being asked to solve.

      So, yeah, people are right that it shouldn't be bool, which is why someone updated the kata to change the starting code to boolean (which, IMO, is just as bad of a name, since it's still the name for a variable type, even if Python proper never uses it; it's like Hungarian Notation, except it's not just a notation, it's the whole name). But, you should keep kata updates in mind when talking about people's ancient solutions: the ground has shifted.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...