Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

added 175 characters in body
Source Link
Karl Knechtel
  • 61.5k
  • 14
  • 134
  • 194

Given:

e = 'a' + 'b' + 'c' + 'd'

How do I write the above in two lines?

e = 'a' + 'b' +
 'c' + 'd'

See also: How do I split the definition of a long string over multiple lines? if there is a long string literal in the code that needs to be broken up to wrap the line nicely.

Given:

e = 'a' + 'b' + 'c' + 'd'

How do I write the above in two lines?

e = 'a' + 'b' +
 'c' + 'd'

Given:

e = 'a' + 'b' + 'c' + 'd'

How do I write the above in two lines?

e = 'a' + 'b' +
 'c' + 'd'

See also: How do I split the definition of a long string over multiple lines? if there is a long string literal in the code that needs to be broken up to wrap the line nicely.

Rollback to Revision 12
Source Link
Karl Knechtel
  • 61.5k
  • 14
  • 134
  • 194

Given:

e = 'a' + 'b' + 'c' + 'd'

How do I write the above in two lines?

e = 'a' + 'b' +
 'c' + 'd'

See also: Why do indented explicit line continuations not allow comments in Python?

Given:

e = 'a' + 'b' + 'c' + 'd'

How do I write the above in two lines?

e = 'a' + 'b' +
 'c' + 'd'

See also: Why do indented explicit line continuations not allow comments in Python?

Given:

e = 'a' + 'b' + 'c' + 'd'

How do I write the above in two lines?

e = 'a' + 'b' +
 'c' + 'd'
added 80 characters in body
Source Link
Karl Knechtel
  • 61.5k
  • 14
  • 134
  • 194

Given:

e = 'a' + 'b' + 'c' + 'd'

How do I write the above in two lines?

e = 'a' + 'b' +
 'c' + 'd'

See also: Why do indented explicit line continuations not allow comments in Python?

Given:

e = 'a' + 'b' + 'c' + 'd'

How do I write the above in two lines?

e = 'a' + 'b' +
 'c' + 'd'

Given:

e = 'a' + 'b' + 'c' + 'd'

How do I write the above in two lines?

e = 'a' + 'b' +
 'c' + 'd'

See also: Why do indented explicit line continuations not allow comments in Python?

edited title
Link
Karl Knechtel
  • 61.5k
  • 14
  • 134
  • 194
Loading
Shorten.
Source Link
Mateen Ulhaq
  • 27.9k
  • 21
  • 122
  • 155
Loading
edited title
Link
Botond
  • 2.8k
  • 7
  • 33
  • 54
Loading
Edited title and removed language tag.
Link
martineau
  • 124.1k
  • 29
  • 181
  • 319
Loading
Tweak title.
Link
jww
  • 103.7k
  • 107
  • 454
  • 975
Loading
Edited question title and removed language tag.
Link
martineau
  • 124.1k
  • 29
  • 181
  • 319
Loading
added 13 characters in body
Source Link
linusg
  • 6.4k
  • 5
  • 32
  • 81
Loading
Loading
Question Protected by NullPoiиteя
added 9 characters in body
Source Link
Peter Mortensen
  • 31.3k
  • 22
  • 110
  • 134
Loading
retitled
Link
tvanfosson
  • 534.3k
  • 102
  • 703
  • 801
Loading
added 180 characters in body
Source Link
Ray
  • 193.8k
  • 99
  • 229
  • 206
Loading
Source Link
Ray
  • 193.8k
  • 99
  • 229
  • 206
Loading
lang-py

AltStyle によって変換されたページ (->オリジナル) /