Skip to content

Commit ac72d87

Browse files
committed
Update pig_latin.py
1 parent 3f99908 commit ac72d87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pig-latin/pig_latin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def is_rule_3(text: str) -> bool:
7676
"""
7777
if "qu" in text:
7878
qu_indx: int = text.index("qu")
79-
return all(not is_vowel(char) for char in text[: qu_indx])
79+
return all(not is_vowel(char) for char in text[:qu_indx])
8080
return False
8181

8282

@@ -89,7 +89,7 @@ def is_rule_4(text: str) -> bool:
8989
"""
9090
if "y" in text and text[0] != "y":
9191
y_indx: int = text.index("y")
92-
return all(not is_vowel(char) for char in text[: y_indx])
92+
return all(not is_vowel(char) for char in text[:y_indx])
9393
return False
9494

9595

0 commit comments

Comments
 (0)