Since I am new to programming, I just want to understand the format the built-in functions is represented in the documentations. This is the one from python
bytearray ([source[, encoding[,errors]]])
Why all the square brackets are terminated at the end? The brackets are nested. There is comma immediately after the square bracket too. Does it mean it takes only 3 arguments? Is the below same as the above one?
I am not understanding the format it represents.