Home Browser Contributors

print()

The print() function is used to output text to standard I/O (terminal), it's a very simple function that only requires 1 parameter in the function.

Example

The most basic example of print() is with:

``` py print("Hello World!") ```

f-strings

As the print function takes a string as an input, it can take advantage of f-strings.

``` py name = "John Doe" print(f"Hey there, {name}!") ```