I have something dumb that is annoying me. Using flake8 linter, they like the lines short obviously, if I run a string like below to continue on the next line:
print('\nWe interrupt this program to annoy you and make things \
generally more irritating.\n')
This is what prints:
We interrupt this program to annoy you and make things generally more irritating.
What is the proper way to continue a line of code without the large space between a printout?
This works:
print("\nWe interrupt this program to annoy you and make things "
"generally more irritating.\n")
You don't need any continuation. Just put two string together with nothing in between, the Python parser will know it mean to concat them
This is called string literal concatenation