Output

The print function prints output to the console.

Objects are automatically converted to string representations for printing.

Reference: https://docs.python.org/3/library/functions.html#print

String Concatenation and Formatting

String concatenation is the operation of joining character strings. In Python, there are several ways to concatenation strings.

Comma

String Concatenation

String Interpolation

Format Literals

Python 3.6 introduced format literals, with a more elegant syntax (less redundancy).

Last updated

Was this helpful?