the last line (#7) should be out of the second loop - move it one level to the left.
As an alternative
As an alternative
numbers = [2,2,5] for x_count in numbers: output = 'x' * x_count print(output)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs