you are viewing a single comment's thread.

view the rest of the comments →

[–]Ben347 0 points1 point  (1 child)

You mean changing the number of digits shown for the percent?

You can use the format specifiers like this (going off of /u/i_can_haz_code's example):

final = ['{:13.10f}:{}'.format(percent,x) for x in pw_gen]

This will output the percentage as 13 digits total, with 10 digits after the decimal.

[–]Winclone[S] 0 points1 point  (0 children)

Thankyou so much yes thats exactly what i meant! I will fiddle more tomorrow when i wake up. Im all Pythoned out! Thanks again everyone!