Two string methods left and right justify strings within a


Question: Two string methods left and right justify strings within a specified width. In addition, they default by filling in with spaces but can be specified to fill in with a character. Consider s="Topkapi" and s.rjust(20,".") or s.ljust(15). Experiment with right and left justification. Describe the rules for what ljust and r just do.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Two string methods left and right justify strings within a
Reference No:- TGS02476744

Now Priced at $15 (50% Discount)

Recommended (92%)

Rated (4.4/5)