Question: hideshow Write a function hideshow that accepts two string arguments, an input string and a masking string. The masking string is a string consisting of

hideshow
Write a function hideshow that accepts two string arguments, an input string and a masking
string. The masking string is a string consisting of '0's and '1's that has the same length as the
input string. The function then returns a new string that is the same as the input string, except
that it is masked. That is, in any position where the masking string contains a '0' the input
character is replaced by a ' # ', whereas if the masking string contains a '1', the character is
unchanged. Sample usage:
 hideshow Write a function hideshow that accepts two string arguments, an

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!