Mi pare che così vada bene:

man = "Istruzione per l'uso ed avvertenze \
 per la sicurezza..."
print(man)

Buona giornata a tutti

Il mer 4 mar 2020, 08:35 Gabriele Battaglia <iz4...@libero.it> ha scritto:

> Buongiorno.
> Non mi ricordo se è possibile spezzare, nel codice, una lunga stringa
> così come si fa con altre istruzioni servendosi del carattere \
>
> Come potrei ad esempio scrivere qualcosa del tipo:
>
> man = "Istruzione per l'uso ed avvertenze \
>         per la sicurezza..."
>
> Si può?
>
> --
> Gabriele Battaglia, IZ4APU (Libero)
> Sent from TB on Windows 10, Genus Bononiae's computer.
> _______________________________________________
> Python mailing list
> Python@lists.python.it
> https://lists.python.it/mailman/listinfo/python
>
_______________________________________________
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python

Rispondere a