Skip to content

Antot-12/Lab_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

📝 Text Processing Program

This is a simple Python script that allows users to perform two main operations on a given text: counting the frequency of each letter and sorting the text alphabetically. The user can choose which operation to perform through a menu.

🚀 Getting Started

To use this program, simply run the script and follow the prompts in the terminal.

🔧 Prerequisites

  • Python 3.x

🏃‍♂️ Running the Script

  1. Choose an Option: After running the script, you will be prompted to choose between two options:

    • A - Count the frequency of each letter in the text.
    • B - Sort the text alphabetically.
  2. Enter Your Text: Depending on your choice, you will be asked to input the text you want to process.

  3. See the Results: The script will output the results of your selected operation.

  4. Continue or Exit: After completing an operation, you can choose to run another operation or exit the program.

🔄 Example Usage

Виберіть ваш варіант: 
A - Кількість букв в тексті
B - Сортувати за абеткою
Ваш вибір  : A
  • If you choose A, the program will count the frequency of each letter in the text you provide.
  • If you choose B, the program will sort the text alphabetically.

🐞 Troubleshooting

  • If you encounter the message "Довбню, ти зламав програму!!!", it means you made an invalid selection after completing an operation. Please follow the instructions carefully to avoid this error.

About

A simple Python text-processing program for counting letter frequencies and sorting user-provided text alphabetically through an interactive command-line menu.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages