Cody

Solution 2291423

Submitted on 18 May 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
a= ['* ' '** ' '*** ' '**** ' '*****'] assert(isequal( star_pattern(5,'bl'),a))

Error in solution: Line: 1 Column: 29 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

2   Fail
a= [' *' ' **' ' ***' ' ****' ' *****' '******'] assert(isequal( star_pattern(6,'br'),a))

Error in solution: Line: 1 Column: 29 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

3   Fail
a= ['****' ' ***' ' **' ' *'] assert(isequal( star_pattern(4,'tr'),a))

Error in solution: Line: 1 Column: 29 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

4   Fail
a= [ '**********' '********* ' '******** ' '******* ' '****** ' '***** ' '**** ' '*** ' '** ' '* '] assert(isequal( star_pattern(10,'tl'),a))

Error in solution: Line: 1 Column: 29 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

5   Fail
a= [ '***************' ' **************' ' *************' ' ************' ' ***********' ' **********' ' *********' ' ********' ' *******' ' ******' ' *****' ' ****' ' ***' ' **' ' *'] assert(isequal( star_pattern(15,'tr'),a))

Error in solution: Line: 1 Column: 29 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.