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?
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?