SyntaxFix
Write A Post
Hire A Developer
Questions
append() creates a new array which can be the old array with the appended element.
append()
I think it's more normal to use the proper method for adding an element:
a = numpy.append(a, a[0])