komentarz

This commit is contained in:
borysr 2024-05-28 19:27:32 +02:00
parent 31ec5762f3
commit 071615f0f2
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,4 @@
# wygenorowano za pomocą chata-gpt-3
import matplotlib.pyplot as plt
def count_words_starting_with(text):
@ -27,3 +26,7 @@ if __name__ == "__main__":
text = "Success is often defined as the ability to reach your goals in life, whatever those goals may be. In some ways, a better word for success might be attainment, accomplishment, or progress. It is not necessarily a destination but a journey that helps develop the skills and resources you need to thrive."
word_counts = count_words_starting_with(text)
plot_bar_chart(word_counts)
# nie wiem jak mogę skorzystać z kodu w C(_rvmain), chyba to jeden sposób jak stworzyć wykres