Skip to content

Commit 12744ae

Browse files
committed
Update word-pattern.py
1 parent 3f074a2 commit 12744ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/word-pattern.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# 3. Each word in str is separated by a single space.
1616
# 4. Each letter in pattern must map to a word with length that is at least 1.
1717

18-
from itertools import izip
18+
from itertools import izip # Generator version of zip.
1919

2020
class Solution(object):
2121
def wordPattern(self, pattern, str):

0 commit comments

Comments
 (0)