Wrote an article
https://itsmycode.com/indexerror-too-many-indices-for-array/