I'm a beginner, please explain to me what the output is

numbers = [5,2,5,2,2]
for x_count in numbers:
output = ’ ’
for count in range(x_count):
output += ‘x’
print(output)
my answer is:
x
xx
xxx
xxxx
xxxxx
x
xx
x
xx
xxx
xxxx
xxxxx
x
xx
x
xx

Hi,
LGTM
Cheers.