fork download
  1. def right_justify(s):
  2. spaces = ' ' * (70-len(s))
  3. return print(spaces + s)
  4.  
  5. right_justify('allen')
Runtime error #stdin #stdout #stderr 0.03s 44680KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "<builtin>/app_main.py", line 75, in run_toplevel
  File "prog.py", line 3
    return print(spaces + s)
          ^
SyntaxError: invalid syntax