To print Bottom Half Hollow Diamond Pattern with fixed alphabet symbol in every row in Python
Code:
n = int(input('Enter n Value:')) for i in range(n): print(' ' * i + chr(64 + n - i) + ' ', end='') if i != n - 1: print(' ' * (2 * n - 2 * i - 3) + chr(64 + n - i), end='') print()