I work on “Think Python” and I’m having some trouble with this exercise:
Python provides a built-in function called
lenthat returns the length of a string, so the
value oflen('allen')is5.
Write a function namedright_justifythat takes a string namedsas a parameter and prints the
string with enough leading spaces so that the last letter of the string is in column 70 of the display.
What you need here is to print space 70 times minus the length of your string, then your string.