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.
To use this program, simply run the script and follow the prompts in the terminal.
- Python 3.x
-
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.
-
Enter Your Text: Depending on your choice, you will be asked to input the text you want to process.
-
See the Results: The script will output the results of your selected operation.
-
Continue or Exit: After completing an operation, you can choose to run another operation or exit the program.
Виберіть ваш варіант:
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.
- 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.