I'm looking for how, in Python, to display the mention of a century after Jesus Christ.
For example :
I
would display “Ier siècle”VII
would display “VIIe siècle”
This can be done using the given function in which we are comparing values and showing the info accordingly.
def displaycentury( century_val ):
if century_val == 1:
return f"{century_val}er siècle"
else:
return f"{century_val}e siècle"
This can be used like print(displaycentury(1))