0
I’m starting in Python and I’m struggling with something relatively simple that I’m not able to accomplish, I’d like to add a line break in a string every 13 characters without cutting the words in half for example:
'gosto de comer abacate'
if I simply add the " n" every 13 characters the sentence will be cut next to the word resulting in:
'gosto de come
r abacate'
would like to know how to break the line without cutting the word something similar to:
'gosto de
comer abacate'
Important you [Dit] your question and explain objectively and punctually the difficulty found, accompanied by a [mcve] of the problem and attempt to solve. To better enjoy the site, understand and avoid closures and negativities worth reading the Stack Overflow Survival Guide in English.
– Bacco