diff --git a/LAP_FUNCTIONS_101.py b/LAP_FUNCTIONS_101.py new file mode 100644 index 0000000..e69de29 diff --git a/bonus.py b/bonus.py new file mode 100644 index 0000000..f4fbd40 --- /dev/null +++ b/bonus.py @@ -0,0 +1,16 @@ +def pattern_as_string(n: int) -> str: + """ + Completed the bonus requirements: + """ + result = "" + + for i in range(n, 0, -1): + for j in range(i, 0, -1): + result += str(j) + " " + result += "\n" + + return result +pattern = pattern_as_string(5) +print(pattern) + +print(pattern_as_string.__doc__) \ No newline at end of file