show everything

This commit is contained in:
Wiktor Mazur
2019-12-15 17:34:34 +01:00
parent 47f64a9834
commit e4963a5a35
11 changed files with 134 additions and 44 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ class Number:
def __truediv__(self, other):
if isinstance(other, Number):
return self.number / other.number
return self.number / other
return self.number / other.number if other.number else other.number
return self.number / other if other else other
def __str__(self):
if self.number / 1000 < 1: