Python Program to Print Downward Triangle Alphabets Pattern

Python Program to Print Downward Triangle Alphabets Pattern

Write a Python program to print downward triangle alphabets pattern using for loop. rows = int(input(“Enter Downward Triangle Alphabets Pat Rows = “)) print(“====Downward Triangle Alphabets Pattern====”) alphabet = 65 for i in range(rows, 0, -1): for j in range(0, i): print(‘%c’ %(alphabet + j), end = ‘ ‘) print() This Python example prints the … Read more

Python Program to Print Diamond Alphabets Pattern

Python Program to Print Diamond Alphabets Pattern

Write a Python program to print diamond alphabets pattern using for loop. rows = int(input(“Enter Diamond Alphabets Pattern Rows = “)) print(“====Diamond Alphabets Pattern====”) alphabet = 64 for i in range(1, rows + 1): for j in range(1, rows – i + 1): print(end = ‘ ‘) for k in range(1, (2 * i)): print(‘%c’ … Read more