How to print multiple arguments in Python?

Sometimes, we want to print multiple arguments in Python.

In this article, we’ll look at how to print multiple arguments in Python.

How to print multiple arguments in Python?

To print multiple arguments in Python, we can print f-strings.

For instance, we write

print(f'Total score for {name} is {score}')

to call print with a f-string that interpolates the values of name and score into the string.

This works since Python 3.6.

Conclusion

To print multiple arguments in Python, we can print f-strings.