Are you aware that there's a space between your last print function and the parentheses? Technically it's allowed but it's a standard convention to not do those
def right_justify(input_string):
spaces = 80 - len(input_string)
spaces_in_front = spaces * " "
if len(input_string) > 79:
print(input_string)
else:
print(spaces_in_front + input_string) # <= print(spaces vs print (spaces