I'm trying to make a horizonal and vertical list; made by inputs. Horizontal list is done and looks like this:
0-29 : *
30-39 : **
40-69 : **
70-100 : **
However now I need to make the stars go from top to bottom like this:
1-10 10-20 20-30
* * *
* *
*
But all it comes up like is :
0-29 **30-39 *40-69 ***70-100
I've tried different coding and this the closest I've come up with. Any tips on how to make the stars go vertically?
var = ""
var= "0-29 "
for x in range(cat1):
var += '*'
print(var, end="")
var = ""
var= "30-39 "
for x in range(cat2):
var += '*'
print(var, end="")
var = ""
var= "40-69 "
for x in range(cat3):
var += '*'
print(var, end="")
var = ""
var= "70-100 "
for x in range(cat4):
var += '*'
print(var, end="")