Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python programming question File Name: ICS3UrepeatCipher.py You are sending a message to your friend. Instead of sending the actual message, you send a set of
Python programming question
File Name: ICS3UrepeatCipher.py
You are sending a message to your friend. Instead of sending the actual message, you send a set of consecutive characters that represent the real letter. The number of consecutive characters determines the real letter.
- A single consecutive character represents the letter A
- Two consecutive characters represents the letter B
- Three consecutive characters represents the letter C
- etc
If you sent the message:
- ********bbbbb&&&&&&&&&&&&999999999999zzzzzzzzzzzzzzz
It would decode to HELLO because there are
- 8 * characters in a row -> H
- 5 b characters in a row -> E
- 12 & characters in a row ->L
- 12 9 characters in a row ->L
- 15 z characters in a row ->O
You need to write a program that DECODES messages
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started