maci.cleanformat
formats data to a cleaner structured output
Formats and dumps dictionaries, lists, tuples, and sets to a string formatted in a clean human-readable structure. Useful for nested data to be represented over multiple lines with indentation.
maci.cleanformat -> str
Basic Example of formatting data to a string using default positional parameter
In this example, we simply format nested data to a string using the cleanformat function and pass the data as an argument to the function, and assign the returned string data to a variable.
Example output using cleanformat with nested dictionary data
Example output using cleanformat with nested list data
parameters & arguments
Describes all parameter functionality and accepted data types
Last updated