• 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
SquareTurtle Avatar
Name:Unknown
Clan:Unknown
Skills:python, html, shell
Member Since:Apr 2017
Last Seen:Jul 2017
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (7)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • Noonie
      • commented on "No zeros for heros" python solution
      • 4 years ago

      Now I get it. Thank you!

    • Custom User Avatar
      • MasterMedo
      • commented on "No zeros for heros" python solution
      • 4 years ago

      You have a misunderstanding of something. n is a number. str(n) turns it into a string. strip just removes the leading and trailing characters. All of this 'launches' in both cases. The int throws an error if it receives an empty string, which is the case if input is only zeros, since you strip them.

    • Custom User Avatar
      • Noonie
      • commented on "No zeros for heros" python solution
      • 4 years ago

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

    • Custom User Avatar
      • MasterMedo
      • commented on "No zeros for heros" python solution
      • 4 years ago

      It doesn't skip anything. Python's or statement returns the left side if it is true and with strings that is whenever the string is not empty. Only when the left side is false does it proceed to evaluate the right side and it returns it regardless of is it true or false.

    • Custom User Avatar
      • Noonie
      • commented on "No zeros for heros" python solution
      • 4 years ago

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

    • Custom User Avatar
      • SquareTurtle
      • commented on "Delete occurrences of an element if it occurs more than n times" kata
      • 8 years ago

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

    • Custom User Avatar
      • SquareTurtle
      • commented on "Cheat Detection" topic
      • 8 years ago

      Hi,

      You click "View Profile". And from there you can you can see the Katas that you already solved and the ones that you have started but not finished yet.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...