There´s a colon missing, either in the book or you overlooked it.
So in other words zeros were added to the start of the ssn
def right(s, amount): return s[-amount:]if the snn is less than 9 digits it is set to nine zeros plus the given digits and then the last nine digits are returned
So in other words zeros were added to the start of the ssn