Skip to content

Commit e636d1c

Browse files
use enumerate
1 parent 57dd785 commit e636d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cowsay/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def wrap_lines(lines: list, max_width: int = 49) -> list:
2828
line_width = 0
2929

3030
# Loop over the characters in the line.
31-
for i in range(len(line)):
31+
for i, character in enumerate(line):
3232

3333
character = line[i]
3434

0 commit comments

Comments
 (0)