We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f99908 commit ac72d87Copy full SHA for ac72d87
pig-latin/pig_latin.py
@@ -76,7 +76,7 @@ def is_rule_3(text: str) -> bool:
76
"""
77
if "qu" in text:
78
qu_indx: int = text.index("qu")
79
- return all(not is_vowel(char) for char in text[: qu_indx])
+ return all(not is_vowel(char) for char in text[:qu_indx])
80
return False
81
82
@@ -89,7 +89,7 @@ def is_rule_4(text: str) -> bool:
89
90
if "y" in text and text[0] != "y":
91
y_indx: int = text.index("y")
92
- return all(not is_vowel(char) for char in text[: y_indx])
+ return all(not is_vowel(char) for char in text[:y_indx])
93
94
95
0 commit comments