Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

strfind and strrep (or strfind and loop), lower/upper Bleep out the given censored substring in an original text string, ignoring case. For each censored substring

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

strfind and strrep (or strfind and loop), lower/upper Bleep out the given "censored" substring in an original text string, ignoring case. For each censored substring found, replace every character with except for the first character For example: if Tish" is a censored substring, the original text 'Fish' becomes Write a function censor_substr that takes two input strings, 1st-the original text string to be searched on, .2nd- the censored substring, and returns the censored text string. You may assume there will not be complication from unusual censored substrings like 'sss',or 'haha' vs. original text of 'ssssssss hahahahaha" To keep the problem simple, the result will be compared, ignoring case. For example suppose ' F ' ' is expected. The string ' f* * * ' ' will also be considered correct. C) If you want to challenge yourself, try to preserve uppercase/lowercase of the first characters of the censored substrings. o intil finich al

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

What is the highest outlier for online transactions?

Answered: 1 week ago

Question

What is the median transaction for online transactions?

Answered: 1 week ago

Question

What insights can you derive from comparing the two box plots?

Answered: 1 week ago