diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-04 07:39:16 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-04 07:39:16 +0000 |
commit | 19fb7a503dcc7a0978b19804e5f8fc9d1d11f9eb (patch) | |
tree | 73867e02708b8ccbf67f7e77c66c8dcf45882b83 /wk6/pset/sentimental-mario-more | |
parent | a1a60d921c9ab0b62161a9efa3ec1e4238cb4c9c (diff) |
Sat, May 4, 2024, 12:39 AM -07:00
Diffstat (limited to 'wk6/pset/sentimental-mario-more')
-rw-r--r-- | wk6/pset/sentimental-mario-more/mario.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wk6/pset/sentimental-mario-more/mario.py b/wk6/pset/sentimental-mario-more/mario.py index dfec5e0..d2d1663 100644 --- a/wk6/pset/sentimental-mario-more/mario.py +++ b/wk6/pset/sentimental-mario-more/mario.py @@ -14,5 +14,9 @@ while True: break for i in range(size): - print(" " * (size - i - 1), "#" * (i + 1), "", "#" * (i + 1), " " * (size - i - 1)) + print(' ' * (size - i - 1), end='') + print("#" * (i + 1), end='') + print(" ", end='') + print("#" * (i + 1), end='') + print(" " * (size - i - 1)) |