The task is to have something like this is as the output:
Progress Trailing Retriever Excluded
* * *
*
- this is a diagram where there are are 4 'headings' and the asterisk represent frequency:
- I want a way in which I can assign a number say for example for 'progress' and it prints 5 asterisks underneath it and for the rest of the headings:
Here is my attempt:
input:
print("Progress")
x = 0
while x<5:
print(' *')
x+=1
output:
Progress
*
*
*
*
*
input:
#for next heading
print("Trailing")
x = 0
while x<2:
print(' *')
x+=1
output:
Trailing
*
*
- is there a way I can show them both vertically? just like the intend output or is there another way I can do this where a number is assigned to each header(for the amount of asterisks)
Thanks in advance, I've been trying to find a way for a long time.