Write a python program to get two strings from the user - a string variable named text and another string variable named

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a python program to get two strings from the user - a string variable named text and another string variable named

Post by answerhappygod »

Write a python program to get two strings from the user - astring variable named text and another string variable named match.Look for match in text and remove all occurrences of match anddisplay the result.
For example, if the string is “It is cold outside” and thesearch string is “cold”. Your result should be “It is outside”
In [ ]:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply