Replace old formatting with new str.format()

This commit is contained in:
Nathan Baker
2020-05-27 20:55:44 -07:00
parent 6e7c188dbd
commit 3266521d31
7 changed files with 62 additions and 53 deletions

View File

@@ -34,4 +34,4 @@ class Determinant:
self.value += value
def __str__(self):
return '%s: %8.2f' % (self.label, self.value)
return '{0:s}: {1:8.2f}'.format(self.label, self.value)