You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
In the section about for loops ...
"One way to print each character is to use four print statements:
This is a bad approach for two reasons:"
Another reason why this is a bad approach is for maintenance. If we wanted to print each letter followed by a comma, for example, we would have to change four lines of code. If we have a for loop, with a single print(word[I]) then we need only change one line of code.
The text was updated successfully, but these errors were encountered: