Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alternatively, print in sorted order, e.g. def print_table(D): K = D.keys() K.sort() n = max(map(len, K)) # Length of longest key for k in K: print("%*s = %s" % (-n, k, D[k]))
- Loading branch information