▶Lesson video
Iterating through data structures
0:00 / 0:00
Download:
Show transcript
Condition-controlled iteration is implemented using while loops in Python.
A string is like a list in structure but is immutable, so elements cannot be changed, added or removed.
Some operations that can be performed on lists can also be performed on strings.