How to translate this phyton code to julia with efficienty(short code,easy to read write)? What about a append!() symbol in julia to "concatenate" vector?

Thanks you, I didn’t think about the [;;] notation, I am not use to it.
I was thinking to much about the python strange “[1]+[0] = [1,0]”.
Have a nice day