• 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
aiyanope Avatar
Name:sriya
Clan:Unknown
Member Since:Oct 2022
Last Seen:Aug 2023
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
Ad
8 Reasons Why Codewarriors Practice Coding with Codewars
Not everyone trains the same. Discover new ways to leverage Codewars in your education and career.
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (2)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • benjaminzwhite
    • commented on "Duplicate Encoder" kata
    • 3 years ago

    Hi and welcome to Codewars!

    First, if you want people to read your code you should use Codewars/Github markdown formatting, as it is much easier to read and copy paste - you can learn how to do this here:

    https://docs.codewars.com/references/markdown/

    Also, very important for troubleshooting - you can print the inputs so you can see which ones are failing: do this by adding print(word) in your Python code:

    https://docs.codewars.com/training/troubleshooting/#error-messages-and-printing-your-inputoutput

    Finally, for your solution - it is failing for tests involving ) ( and other non-alphabetic chars in the inputs:

    "(( @"

    " ( ( )"

    so maybe you can slightly modify your code and things should work.

  • Custom User Avatar
    • aiyanope
    • commented on "Duplicate Encoder" kata
    • 3 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...