Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
center around the max value. the max value is already provided.
This comment is hidden because it contains spoiler information about the solution
My python code passes all 5 tests, but I'm getting Exit Code:1
Traceback (most recent call last):
File "main.py", line 15, in
replicate.reset()
AttributeError: 'function' object has no attribute 'reset'
Any ideas why? I'm not calling reset() anywhere in my code?
figured this out, thank you. Your comment helped.
I had to step away from it for a little while to clear my head. I think that I can use my counter, and the input provided (diamond size) to determine the amount of leading spaces. I just need to figure out how...
Look for patterns. How much should each be indented, does that relate to any other known information?
I'm struggling to figure out how to 'center' the diamond. I'm able to output a diamond based on the input of an odd positive integer, but my diamond lines are justified on the left margin. I need to add the appropriate amount of spaces to the left side of each line (well, each line except the 'center'/ largerst line) - just need to come up with a clean way of doing it... Any suggestions? I'm using python.