So I've got this so far and I was having a problem with getting the output to print right aligned.
I've tried using .rjust
to make my output show up like this:
abc
de
fghijklmn
but it shows up like this:
abc
de
fghijklmn
Here is what I've tried so far:
strings = ['abc', 'de', 'fghijklmn']
col_umn = ("\n".join(strings))
rcol_umn = (col_umn.rjust(max(len(ele) for ele in strings)))
width = max(len(ele) for ele in strings)
fillchar = " "
print(col_umn.rjust(5, fillchar))
length = max(strings)
res = max(len(ele) for ele in strings)
print(" ")
print(str(res))