When you want a long line break

s = 'aaaaaaaaaaaaaaaaa' \
    + 'bbbbbbbbbbbbbbbbbbb'

Error if there is a "+" in the head Put a "" at the end to tell it to continue on the next line.

Or

s = ('aaaaaaaaaaaaaaaaaaaaa'
    + 'bbbbbbbbbbbbbbbbbbbbbb')

x = (1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1
    + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1)

Enclose in ().

4 spaces for indentation

Recommended Posts

When you want a long line break
When you want to play a game via Proxy
When you want to plt.save in a for statement
[Django] A memorandum when you want to communicate asynchronously [Python3]
When you want to hit a UNIX command on Python
When you want to sort a multidimensional list by multiple lines
Gist repository to use when you want to try a little with ansible
When you want to replace a column with a missing value (NaN) column by column
I made a program to notify you by LINE when switches arrive
If you can't type a line break "\" in GoLand downloaded with macOS JetBrains
If you want to create a Word Cloud.
When you want to update the chrome driver.
How to remember when you forget a word
If you get a long error when tabbing an interactive shell with Anaconda
Directions when operating Miniconda after a long time
What to do when you want to receive files from a Windows client remotely
[Linux] When you want to search for a specific character string from multiple files
100 image processing knocks !! (021-030) I want to take a break ...
Settings when you want to run python-mecab with travis
When you want to filter with Django REST framework
When you want to quickly translate a C # sample into another language such as VB
A site to see when you want to read a machine learning paper but it seems difficult
Solution when you want to use cv_bridge with python3 (virtualenv)
[AWS] What to do when you want to pip with Lambda
A solution when you can't start project Django on Windows
When you want to register Django's initial data with relationships
[Introduction to Udemy Python3 + Application] 32.1 When one line becomes long
I want to send a message from Python to LINE Bot
When you want to use python2.x on modern Gentoo Linux
When you want to replace multiple characters in a string without using regular expressions in python3 series