Python3report an error:TypeError: string indices must be integers
The problem is shown in the figure below:
The reason is that the i in the for loop represents a String variable, while the i in the List represents an Int variable, and the two conflict, resulting in an error.
BONUS: Commonly used AI toolboxes
Link:/docx/Mv4Dd8TEYoUmTAxfpLtcUoOKnZc?from=from_copylink