Build me a code in python

Job ID: 32995499

Budget: $10 – $30 USD

Based on the frequency analysis of the English language develop a cryptanalysis tool in PYTHON for the substitution cipher. All steps are mandatory.

The tool should take as input text from the user which may be up to 1000 alphabets (not including numbers or other characters). The text should be stored in an array. Lowercase and uppercase alphabets should be treated in the same manner The tool should perform the cryptanalysis step by step. It should ask the user what he/she wants to do first
Single letters
Bigrams
Trigrams
Guess all letters based on the frequency whether they are part of a word or not.

When the user has selected a choice from the previous step , the tool should present the probable substitution choices to the user and then allow the user to select the choice he/she want.
The choices should have the frequency of the single letter/bigram/trigram occurring in the cipher text and the frequency of the single letter/bigram/trigram occurring in the English language mentioned along with it. Once the users selects a choice, the substitution should be made, and the partially guessed ciphertext should be displayed.
The tool should ask the user whether he/she want to find another substitution from the same category (single letter/bigram/trigram) or change the category.
The above process should keep on repeating until the user stops it.
Related categories: Python Software Architecture Cryptography