Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!