You're saying there's an error like this, right?
TypeError: string indices must be integers, not str
(TypeError: The index of the string must not be text but must be an integer.)
In fori in string:
, i
is "H"
, "e"
, "l"
, "l"
respectively. 0
, 1
, 2
... Not (string
) because it is a string. It's a Python feature.)
© 2024 OneMinuteCode. All rights reserved.