Ad
  • Custom User Avatar

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

  • Custom User Avatar

    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?

  • Custom User Avatar

    figured this out, thank you. Your comment helped.

  • Custom User Avatar

    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...

  • Custom User Avatar

    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.