Salto de línea correcto en Python
📁 lista, python, ejemplo
Indica, hay una lista con frases, pero son largas y PEP8 se queja por la longitud de la línea.
Parte de la frase la transfiero con el símbolo \, pero entonces cuenta todos los espacios.
Ejemplo:
list_of_words = [""The weather is good."", ""Hot dog is the best food, \ it would be a sure sign that it was still yummy."", ""The girls are beautiful."", ""Текст любой, не важно, но после бэкслэша огромное \ расстояние между словами. Как это исправить?""]print(*list_of_words)Salida:
The weather is good. Hot dog is the best food, it would be a sure sign that it was still yummy. The girls are beautiful. Текст л