i couldn't figure out how to write this another way (or should i say a more current way, like with an f-string or str.format). the goal is to print "Current activity" followed by dashes to a width of 26 characters as defined by a variable.
activityCols = 26
print("Current activity".ljust(activityCols,"-"))
any thoughts on a more current way?
i tried
activityCols = 26
print('{:-<(activityCols)}'.format("Current activity"))
but that didn't work.
.ljustmethod is good enough,If you want to try something new