• 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
WhatInception Avatar
Name:Unknown
Clan:Unknown
Member Since:Jul 2022
Last Seen:Jun 2023
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (5)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • WhatInception
      • commented on "Sum of Digits / Digital Root" kata
      • 3 years ago

      ohh ok that makes sense, ty

    • Custom User Avatar
      • Chrono79
      • commented on "Sum of Digits / Digital Root" kata
      • 3 years ago

      You need to return the recursive call to your function. Your code works for 15, but it doesn't when you have to use recursion. In the error message "15 should equal 6", it doesn't mean the input value was 15, it means your function returned 15 instead of 6.

    • Custom User Avatar
      • WhatInception
      • commented on "Sum of Digits / Digital Root" kata
      • 3 years ago

      imma be honest my code doesnt actually work all the way but it still does put 15 as 6 in pycharm no idea why i get that many errors here

      also i searched how to do recursions and man i have no idea that codes like the best i understood from it

    • Custom User Avatar
      • Chrono79
      • resolved an issue on "Sum of Digits / Digital Root" kata
      • 3 years ago

      That's a problem with your code, not a kata issue:

      Python Completions 60871

      You're doing recursion wrong.

    • Custom User Avatar
      • WhatInception
      • created an issue for "Sum of Digits / Digital Root" kata
      • 3 years ago

      my code works perfectly on pycharm, 100 fails when i put it on here.
      "15 should equal 6" even though it literally does

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...