I believe the code for making a dashed line can be simplified and more Pythonic. Currently, it’s this:
dash_line = '-'.join('' for x in range(100))
But the same thing can be accomplished with:
dash_line = "-" * 100
I believe the code for making a dashed line can be simplified and more Pythonic. Currently, it’s this:
dash_line = '-'.join('' for x in range(100))
But the same thing can be accomplished with:
dash_line = "-" * 100
Thanks for your recommendation.