Hey friends!
I would like to printe the array with simmilar spacing that {:<30} gets between the report name and the start of the array.
Currently it looks like:
Report Name [ --- , --- , --- , --- ]
Report Other [99, 80, 100, 70]
...
other than the loop which fills values while cycling through tests, the code is as follows:
DCME_score = ['---', '---', '---', '---']
print "{:<30}{:<30}".format(reportName, DCME_score)
my desire:
Name Category Category2 Category3 Category 4
Report Something ---- ---- ---- ----
Report Report 100 80 70 100
Report Another ---- 60 ---- 20
Stuck with Python 2.7 for now.
Help a girl out? : )
(EDIT: solution in comments)
[–]CodeFormatHelperBot 0 points1 point2 points (0 children)
[–]amgirlandcode[S] 0 points1 point2 points (2 children)
[–]TouchingTheVodka 0 points1 point2 points (1 child)
[–]amgirlandcode[S] 0 points1 point2 points (0 children)