Bill_Ye:

TypeError: string indices must be integers


TypeError:  means that you are trying to perform an operation on a value whose type is not compatible with that operation.  An Iterable is a collection of elements that can be accessed sequentially . In Python, iterable objects are indexed using numbers . When you try to access an iterable object using a string or a float as the index, an error will be returned as TypeError: string indices must be integers 17. This means that when you’re accessing an iterable object like a string or float value, you must do it using an integer value.