Question: Replace the comment in the following code with a while loop. Please use python. numXs = int(input('How many times should I print the letter X?
Replace the comment in the following code with a while loop. Please use python. numXs = int(input('How many times should I print the letter X? ')) toPrint = '' #concatenate X to toPrint numXs times print(toPrint)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
