We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4541de commit 6c92b8dCopy full SHA for 6c92b8d
hollow_diamond_alphabets.py
@@ -1,10 +1,10 @@
1
def hollow_diamond_alphabet(n: int) -> None:
2
"""
3
Prints a hollow diamond pattern using alphabet characters.
4
-
+
5
Parameters:
6
n (int): The size of the diamond. Determines the number of rows.
7
8
Example:
9
>>> hollow_diamond_alphabet(5)
10
A
@@ -37,5 +37,6 @@ def hollow_diamond_alphabet(n: int) -> None:
37
print(left_spaces + chr(alpha - 2) + hollow_spaces + chr(alpha - 1))
38
alpha -= 2
39
40
41
n = int(input("Enter the size of the diamond: "))
42
hollow_diamond_alphabet(n)
0 commit comments