从给定的整数列表创建直方图

def histrogram(nums):
    for x in nums:
        output = ''
        while x > 0:
            output = output + "x"
            x = x - 1
        print(output)

histrogram([2, 3, 6, 5])

What does x = x - 1 do when you run the program?