Skip to content

Prettify 2D-lists (and dictionary output) #6002

Discussion options

You must be logged in to vote

In addition to an expression or a statement you can also add a description to a testcase. The expression / statement is what will be evaluated/executed. The description is what will be shown to the student when generating feedback.

Try adding a descripton with a multiline string to see if that works. Since the description is not parsed, it should not change, but you will loose the syntax highlighting. You can format the description using the Python syntax highlighter with

description:
  description: "nullen([\n    [11, -6, 1, 4],\n    [-3, -14, -9, 13],\n    [-7, 13, -8, 7],\n     [6, -15, 7, 4],\n    [7, 0, 15, 0],\n    [-5, 8, 12, 9]\n])"
  format: "python"

(I haven't check whether the …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@DieterPi
Comment options

@pdawyndt
Comment options

Comment options

You must be logged in to vote
1 reply
@pdawyndt
Comment options

Answer selected by DieterPi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants