From 8f93971d9b3782c1f922c2e299247f4432d915b6 Mon Sep 17 00:00:00 2001 From: eslopfer Date: Mon, 30 Jan 2023 20:21:17 +0000 Subject: [PATCH] docs(string_tokenizer_count): fix inaccurate usage section --- subjects/devops/string_tokenizer_count/README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/subjects/devops/string_tokenizer_count/README.md b/subjects/devops/string_tokenizer_count/README.md index 2fdff25c5..8a86cdf54 100644 --- a/subjects/devops/string_tokenizer_count/README.md +++ b/subjects/devops/string_tokenizer_count/README.md @@ -10,19 +10,20 @@ Create a file string_tokenizer_count.py that contains a function tokenizer_count ### Usage -Here is an example of how to use the function: +Here is an example of how to use the function in a test.py script: ```python string = "This is a test sentence, with various words and 123 numbers!" result = tokenizer_counter(string) -print(string) +print(result) ``` And its output: ```console -string = "This is a test sentence, with various words and 123 numbers!" -result = tokenizer_counter(string) +$ python3 test.py +{'123': 1, 'a': 1, 'and': 1, 'is': 1, 'numbers': 1, 'sentence': 1, 'test': 1, 'this': 1, 'various': 1, 'with': 1, 'words': 1} +$ ``` ### Hints