Skip to content

Utilities

Jordan Welsman edited this page Feb 16, 2023 · 1 revision

The utilities sub-module is reserved for useful pieces of code that don't quite fit into any of the other sub-modules.

hello_world()

Fun fact: this was jutils' first function. It does nothing other than what you'd expect.

Usage

from jutl.utilities import hello_world

print(hello_world()) # prints "Hello, World!"
print(hello_world(name="Jordan")) # prints "Hello, Jordan!"

Arguments

Argument Data type Default Description
name string None The name to greet

Accepted arguments

Argument Required Accepted values
name Any string

Returns

This function returns a string containing a greeting.

Side-effects

This function does not have any side-effects.