This commit is contained in:
BarsTiger
2022-02-24 08:33:34 +02:00
parent aadb48c2b6
commit 2278bde59c
5 changed files with 9 additions and 4 deletions

View File

@@ -97,6 +97,9 @@ codes = {'CONTINUE': 100,
}
def handle(code):
def handle(code) -> list:
"""Prints and the status code in another way and code from args.
If it was number code returns list with message and code and if it was string code
returns list with code and message"""
print(codes[code])
return [codes[code], code]