Question: use python Write a program with the while loop which allows user to repeatedly enter a series of literal strings (one string entered in each
Write a program with the while loop which allows user to repeatedly enter a series of literal strings (one string entered in each loop iteration). For each entered string, replicate it for 3 times using the : operator and print out the result (replicated string). By the end of each loop iteration, user will be asked whether he/she wants to enter another string: if user enters Yes, loop continues; otherwise, loop terminates. [Run your program in Python IDLE to verify if it works correctly as described above] Enter a literal string: ab The replicated string is ababab Do you want to enter another string? yes Enter a literal string: !@ The replicated string is!@!@!@ Do you want to enter another string? no
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
