Question: need help with this python assigment Part II: Run-length Decoding (5 points) Now write the function rld that performs a run-length decoding of a string

need help with this python assigment

Part II: Run-length Decoding (5 points) Now write the function rld that performs a run-length decoding of a string that was encoded using the rle function described above. The function's arguments are a non-empty string to decode and the character to use as the flag character. The input string consists of a properly-formatted run-length encoding, and the flag character is Homework #3 Page 2 CSE 101 Spring 2017 drawn from the set 1#, &, Y. You may assume that the input string and the flag character are both valid. Examples: Function Call Return Value rld ('XYZ A6GGT C6TTT A 14KK' XYZAAAAAAALAGGTCCCCCCTT TAAAAAAAAAAAAAAAKK' GGGGG rld G5', rld & G15ABC', 's') GGGGGGGGGGGGGGGABC' rld ('ABCCDEF GGG', AB (CCDEFGGG' Note that the quotation marks displayed in the return values are there to emphasize that the return values are strings. You should not add quotation marks to your return values

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!