W3docs

Print multiple arguments in Python

Here is an example of how to print multiple arguments in Python:

Here is an example of how to print multiple arguments in Python:

Print multiple arguments in Python

python— editable, runs on the server
Info

Watch a video course: Python - The Practical Guide

Both of the above code snippets will output:


Hello, world!

You can also use f-strings (formatted string literals) which were introduced in Python 3.6:

Use f-strings in print in Python

python— editable, runs on the server

This will also output the same output as above.