utils

utils#

Functions

alternating_binary_generator()

Alternates between True and False.

print_delimiter([delimiter, n])

Prints the given delimiter for n times

print_gap([n])

Prints n empty rows.

print_problem_instance(instance, verbosity_level)

Convenience function to print the given ProblemInstance if the current verbosity_level is greater than or equal to min_verbosity_level.

underscore_formatter(x, *args)

Convert the given input to integer and return it in underscore-formatted string form.