- In this challenge, you will show
that you understood how to use loops,
which type of loops are most appropriate
and solve a little problem
that would require you to use loops.
The challenge is pretty simple.
You are required to display a bar chart.
What is a bar chart?
It's a set of dots printed horizontally
that represent one bar.
If you print several of them, one below the other,
eventually they will form a bar chart.
You will create one function whose role
is to print a single bar.
You have to figure out how to do that.
Then you'll create another function
that calls the first function multiple times
each time sending it a different parameter
that represents the length of the bar.
It is up to you how many bars you want to print,
five, ten, or anywhere in between would be a good number
but that's totally up to you.
Good luck, and by the way, we think this should take you
maybe about 20 minutes to figure this out.