Skip to content

Commit 6c92b8d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e4541de commit 6c92b8d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hollow_diamond_alphabets.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
def hollow_diamond_alphabet(n: int) -> None:
22
"""
33
Prints a hollow diamond pattern using alphabet characters.
4-
4+
55
Parameters:
66
n (int): The size of the diamond. Determines the number of rows.
7-
7+
88
Example:
99
>>> hollow_diamond_alphabet(5)
1010
A
@@ -37,5 +37,6 @@ def hollow_diamond_alphabet(n: int) -> None:
3737
print(left_spaces + chr(alpha - 2) + hollow_spaces + chr(alpha - 1))
3838
alpha -= 2
3939

40+
4041
n = int(input("Enter the size of the diamond: "))
4142
hollow_diamond_alphabet(n)

0 commit comments

Comments
 (0)