diff --git a/d00/ex06/ft_filterstring.py b/d00/ex06/ft_filterstring.py index c0a8348..4f4afdd 100644 --- a/d00/ex06/ft_filterstring.py +++ b/d00/ex06/ft_filterstring.py @@ -1,6 +1,3 @@ -from ft_filter import ft_filter - - def get_args(argv: list[str]) -> dict[str, int]: """check and return arguments""" @@ -28,6 +25,8 @@ def main(argv: list[str]): text = args["text"] maxlen = args["len"] + print(text.split()) + words = [word for word in text.split()] filter_words = list(ft_filter(lambda word: len(word) > maxlen, words)) @@ -36,4 +35,5 @@ def main(argv: list[str]): if __name__ == "__main__": import sys + from ft_filter import ft_filter main(sys.argv)