continuation line
An extra line of a statement that was not finished, shown in the shell with a prompt of three dots instead of >>>.
In more detail
An open parenthesis, bracket or brace makes Python keep reading until it is closed, so an unfinished parenthesis leaves you at a continuation prompt. In a file, a long statement can likewise be split across lines inside brackets.
Related terms
- Python prompt — The three greater-than signs, >>>, that the Python shell shows when it is waiting for you to type a statement.
- expression — A piece of code that Python can evaluate to produce a value, such as 2 + 3, name or len(word).
Taught in
- Integer Arithmetic And Precedence — Hands-on Python: Complete Video Course & Book
- The Print Function And String Literals — Hands-on Python: Complete Video Course & Book
- Lists, Range And The For Loop — Hands-on Python: Complete Video Course & Book