Question: Write a function named right justify that takes a string named input_string as a parameter. If the input string is longer than 79 characters, the

Write a function named right justify that takes a string named input_string as a parameter. If the input string is longer than 79 characters, the string should be printed as is, Otherwise, the function should print the string with enough leading spaces that the last letter of the string is in column 80 of the display. (Note: Python has an inbuilt function called len that returns the length of a string. You can use this function to help perform the task). 1-Hef right justify(input string): pass # TODO: Complete this function 4 value input("Enter string to justify: ) 5 right justify(value)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
