79527431

Date: 2025-03-22 12:25:05
Score: 0.5
Natty:
Report link

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
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: stefaan1o