You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 8, 2020. It is now read-only.
#Write a function named right_justify that takes a string named s as 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
def right_justify(s):
whitespace_num = 70 - len(s)
s = ' ' * whitespace_num + s
print s
right_justify("month")
right_justify("a")
right_justify("This is a test,This is a test,This is a test,This is a test,This is a") #string length = 69