Question: Q - 1 Write a Python program that takes a string keyword from user input. Then print the keyword with all repeated letters replaced by

Q-1 Write a Python program that takes a string keyword from user input. Then print the keyword with all repeated letters replaced by +.
Note: Do NOT use the replace() method for this question, you will not receive any credit if you do.
Example 1:
Program Prompt: Enter a keyword:
User response: 'settle'
Program prints: 'set +1+'
Example 2:
Program Prompt: Enter a keyword:
User response: 'printing'
Program prints: 'print++g'
 Q-1 Write a Python program that takes a string keyword from

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!