diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-04 07:20:42 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-04 07:20:42 +0000 |
commit | fc564cb7f1e894cf07c386bb598344a5143dd040 (patch) | |
tree | 1b56a0e5ae49a03897e587c297504e6e8f44bb7d /wk6/pset/sentimental-mario-more | |
parent | 5782df7353475af2de922918913ffae4d0862f2f (diff) |
Sat, May 4, 2024, 12:20 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, 3 insertions, 3 deletions
diff --git a/wk6/pset/sentimental-mario-more/mario.py b/wk6/pset/sentimental-mario-more/mario.py index 883e400..c8be4ce 100644 --- a/wk6/pset/sentimental-mario-more/mario.py +++ b/wk6/pset/sentimental-mario-more/mario.py @@ -9,9 +9,9 @@ from cs50 import get_int size = 0 -while size < 1 && size > 8: +while size < 1 and size > 8: size = get_int("Height: ") -for i in range(input - 1): - print(" " * (input - i - 1), "#" * i + 1) +for i in range(size - 1): + print(" " * (size - i - 1), "#" * i + 1) |