• 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
jerub Avatar
Name:Stephen Thorne
Clan:Unknown
Member Since:Oct 2014
Last Seen:Jan 2015
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (20)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Redfury
    • commented on "Convert a Number to a String!" python solution
    • 8 months ago

    That's a great move right here! well done !!

  • Custom User Avatar
    • VictorBravo9er
    • commented on "Convert a Number to a String!" python solution
    • 12 months ago

    its called aliasing..

    number_to_string = str

    its like instructing python that str has another name as well, namely 'number_to_string'.

  • Custom User Avatar
    • user7182287
    • commented on "Convert a Number to a String!" python solution
    • 3 years ago

    Thanks for the detailed explanation of this approach.

  • Custom User Avatar
    • Sizzlik
    • commented on "Convert a Number to a String!" python solution
    • 3 years ago

    Dayum thats a smart move

  • Custom User Avatar
    • wangone
    • commented on "Convert a Number to a String!" python solution
    • 5 years ago

    Thanks for the explanation!

  • Custom User Avatar
    • catalin560
    • commented on "Convert a Number to a String!" python solution
    • 6 years ago

    outstanding move!

  • Custom User Avatar
    • Edozie101
    • commented on "Convert a Number to a String!" python solution
    • 9 years ago

    How does this work ?

  • Custom User Avatar
    • wormyy
    • commented on "Unpacking Arguments" python solution
    • 11 years ago

    thanks for explaining!

  • Custom User Avatar
    • jerub
    • commented on "Unpacking Arguments" python solution
    • 11 years ago

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

  • Custom User Avatar
    • wormyy
    • commented on "Unpacking Arguments" python solution
    • 11 years ago

    Can anyone explain this solution? thanks

  • Custom User Avatar
    • mpex
    • commented on "mkdir -p" python solution
    • 11 years ago

    you are right, in productive use this is absolutely vital

  • Custom User Avatar
    • JensTimmerman
    • commented on "mkdir -p" python solution
    • 11 years ago

    You shoudln't just pass on ever OSError, this could also be raised when you e.g. run out of inodes, so you would want to error there.

  • Custom User Avatar
    • kgashok
    • resolved an issue on "SequenceSum" kata
    • 11 years ago

    n being negative is the challenging part of the kata. I am choosing to leave it in.

  • Custom User Avatar
    • kgashok
    • commented on "SequenceSum" kata
    • 11 years ago

    Thank you for your suggestions. Shall incorporate them.

  • Custom User Avatar
    • jerub
    • created an issue for "SequenceSum" kata
    • 11 years ago

    The instructions are extremely terse. The 'Sum of consequtive numbers' is strange to explain - you could perhaps mention this is a mathematical progression, or mention triangle numbers. When I first attempted the problem I thought 'n' was a list not a number! Mention the types you expect too.

    Removing the case of negative numbers would be very good too - they are a bit of a nasty concept here. Leave them in only if you have to.

    I would suggest this phrasing:

    'sum_of_n' takes an integer 'n' and returns a list of length abs(n) + 1. The list contains the first numbers in the arithmatic series produced by taking the sum of the consequtive integer numbers from 0 to n inclusive.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...