Jan-18-2020, 06:22 PM
Hi What is wrong with my code? I'm trying to print the a number of 'X' strings based on my input value (integer). However, when I try to run it in my Python IDE, there is no output for some reason, nor do I get any error message. Any help or suggestion would be greatly appreciated.
numXs = int(input('How many times should I print the letter X? ')) toPrint = '' while numXs >= 0: toPrint = numXs * 'X' print(toPrint)