move import
This commit is contained in:
@@ -1,6 +1,3 @@
|
|||||||
from ft_filter import ft_filter
|
|
||||||
|
|
||||||
|
|
||||||
def get_args(argv: list[str]) -> dict[str, int]:
|
def get_args(argv: list[str]) -> dict[str, int]:
|
||||||
"""check and return arguments"""
|
"""check and return arguments"""
|
||||||
|
|
||||||
@@ -28,6 +25,8 @@ def main(argv: list[str]):
|
|||||||
text = args["text"]
|
text = args["text"]
|
||||||
maxlen = args["len"]
|
maxlen = args["len"]
|
||||||
|
|
||||||
|
print(text.split())
|
||||||
|
|
||||||
words = [word for word in text.split()]
|
words = [word for word in text.split()]
|
||||||
|
|
||||||
filter_words = list(ft_filter(lambda word: len(word) > maxlen, words))
|
filter_words = list(ft_filter(lambda word: len(word) > maxlen, words))
|
||||||
@@ -36,4 +35,5 @@ def main(argv: list[str]):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import sys
|
import sys
|
||||||
|
from ft_filter import ft_filter
|
||||||
main(sys.argv)
|
main(sys.argv)
|
||||||
|
|||||||
Reference in New Issue
Block a user