filmov
tv
Write Multiline String in Python #code #python #tips

Показать описание
Learn how to split a string over multiple lines in Python with this tutorial. While pressing the enter key won't work for this purpose, using a backslash will put the string on the next line, but it won't print as a multi-line string in the console. Instead, you need to enclose the string in triple quotes, allowing you to split it as needed and have it print as a multi-line string in the console. For more coding tips, follow Better Stack.