We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57dd785 commit 30a4949Copy full SHA for 30a4949
cowsay/main.py
@@ -28,9 +28,7 @@ def wrap_lines(lines: list, max_width: int = 49) -> list:
28
line_width = 0
29
30
# Loop over the characters in the line.
31
- for i in range(len(line)):
32
-
33
- character = line[i]
+ for i, character in enumerate(line):
34
35
if character in list(string.printable):
36
# Half width characters.
0 commit comments