Browse Source
Houses a collection of print-based functions to help relay information in the terminal. The biggest motivation for this was to make the dictionaries easier to read when printing them in the terminal.stable
Craig Oates
3 years ago
1 changed files with 16 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||||||
|
def print_dictionary(dictionary): |
||||||
|
for k,v in dictionary.items(): |
||||||
|
print(f"{k} : {v}") |
||||||
|
|
||||||
|
def print_list(the_list): |
||||||
|
for item in the_list: |
||||||
|
print(f"item") |
||||||
|
|
||||||
|
def update(message): |
||||||
|
print(f"[UPDATE] {message}") |
||||||
|
|
||||||
|
def error(message): |
||||||
|
print(f"[ERROR] {message}") |
||||||
|
|
||||||
|
def info(message): |
||||||
|
print(f"[INFO] {message}") |
Reference in new issue