Question: WRITE IN PYTHON: Write a function demystify(11_string) that takes a string composed of the characters 1 and 1 and returns the string formed by replacing
WRITE IN PYTHON:

Write a function demystify(11_string) that takes a string composed of the characters "1" and "1" and returns the string formed by replacing each instance of "1" by "a" and each instance of "1" by "b" Once you have implemented demystify, test your function with calls below. The first call should print the string "aaabbbabababbbbaaa" in the console. Enter the second string printed in the console in the text box below. Do not include enclosing quotes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
