+ def century_description(self, number):
+ n = abs(number)
+ letters = ''
+ while n > 10:
+ letters += 'X'
+ n -= 10
+ if n == 9:
+ letters += 'IX'
+ n = 0
+ elif n >= 5:
+ letters += 'V'
+ n -= 5
+ if n == 4:
+ letters += 'IV'
+ n = 0
+ letters += 'I' * n
+ letters += ' w.'
+ if number < 0:
+ letters += ' p.n.e.'
+ return letters
+
+ def birth_century_description(self):
+ return self.century_description(self.century_of_birth)
+
+ def death_century_description(self):
+ return self.century_description(self.century_of_death)
+
+ def year_description(self, number):
+ n = abs(number)
+ letters = str(n)
+ letters += ' r.'
+ if number < 0:
+ letters += ' p.n.e.'
+ return letters
+
+ def year_of_birth_description(self):
+ return self.year_description(self.year_of_birth)
+ def year_of_death_description(self):
+ return self.year_description(self.year_of_death)
+
+