Undocumented format for the output


The format of the answer is the numbers separated by spaces.
Example: 1 2 3 4 5 6 7 8 9

If you put commas or express it as an array, then you’ll be marked wrong.


This indeed seems to be the case - I got burned on a previous exercise, (wrongly) assuming that a comma at the end of a print actually adds the comma, when in fact all it does is prints the output on the same line. A bit annoyed with myself that I did not get top points but at least I learned something new about python :slight_smile: from here (https://stackoverflow.com/questions/18908897)

Have a great day!


The correct answer is–
5 10 2 1 5 1 2 10
Put double space after each of the array element.
The first Part of the B array will be same as since B[i]=A[i]
for rest calculate/focus for this statement only–
B[i + len] = A[(len - i) % len];