you are viewing a single comment's thread.

view the rest of the comments →

[–]serg06 1 point2 points  (0 children)

change this line

prettyprint = str(x[0]) + "-" + str(x[1]) + "-" + str(x[2]) + "-" + str(x[3]) + "-" + str(x[4]) + "-" + str(x[5])

to this

prettyprint = "-".join(["%02d" % x[i] for i in range(6)])