Python program to Print Sandglass Star Pattern

Write a Python program to print sandglass star pattern using for loop.  rows = int(input(“Enter Sandglass Star Pattern Rows = “)) print(“====Sandglass Star Pattern====”) for i in range(0, rows): for j in range(0, i): print(end = ‘ ‘) for k in range(i, rows): print(‘*’, end = ‘ ‘) print() for i in range(rows – 1, … Read more

Python Program to Print Hollow Left Pascals Star Triangle

Write a Python program to print hollow left pascals star triangle pattern using for loop.  rows = int(input(“Enter Hollow Left Pascals Star Triangle Pattern Rows = “)) print(“====Hollow Left Pascals Star Triangle Pattern====”) for i in range(1, rows + 1): for j in range(rows, i, -1): print(end = ‘ ‘) for k in range(1, i … Read more

Python Program to Print Downward Triangle Star Pattern

Write a Python program to print downward triangle star pattern using for loop. rows = int(input(“Enter Downward Triangle Pattern Rows = “)) print(“Downward Triangle Star Pattern”) for i in range(rows, 0, -1): for j in range(0, i): print(‘*’, end = ‘ ‘) print() This Python example displays the downward triangle pattern of stars using a … Read more

Python Program to Print a Simple Number Pattern

Write a Python program to print a simple number pattern using for loop. rows = int(input(“Enter Simple Numeber Pattern Rows = “)) print(“====Printing Simple Number Pattern====”) for i in range(1, rows + 1): for j in range(1, i + 1): print(j, end = ‘ ‘) print() This example Python program displays the numbers in the … Read more

Python Program to Print Triangle Alphabets Pattern

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

Python Program to Print Diamond Number Pattern

Write a Python program to print diamond number pattern using for loop. rows = int(input(“Enter Diamond Number Pattern Rows = “)) print(“====Diamond Number Pattern====”) 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(k, end = ”) … Read more

Python Program to Print Consecutive Rows Numbers in Right Triangle

Write a Python program to print consecutive rows numbers in right triangle pattern using for loop. rows = int(input(“Enter Consecutive Numbers in Right Triangle Pattern Rows = “)) print(“====Consecutive Row Numbers Right Triangle Pattern====”) for i in range(1, rows + 1): val = i for j in range(1, i + 1): print(val, end = ‘ … Read more

Python Program to Print Consecutive Column Numbers in Right Triangle

Write a Python program to print consecutive column numbers in right triangle pattern using for loop. rows = int(input(“Enter Consecutive Col Nums Right Triangle Pattern Rows = “)) print(“====Consecutive Column Numbers Right Triangle Pattern====”) val = 0 for i in range(1, rows + 1): for j in range(1, i + 1): val = val + … Read more

Python Program to Print Pyramid Star Pattern

Write a Python Program to Print Pyramid Star Pattern using a for loop. This example uses multiple for loops nested inside another to print the Pyramid pattern. rows = int(input(“Enter Pyramid Pattern Rows = “)) print(“Pyramid Star Pattern”) for i in range(0, rows): for j in range(0, rows – i – 1): print(end = ‘ … Read more

Python Program to Print Rhombus Star Pattern

Write a Python Program to Print Rhombus Pattern using a for loop. This Python example uses multiple for loops to print rhombus star patterns. # Python Program to Print Rhombus Star Pattern rows = int(input(“Enter Rhombus Star Pattern Rows = “)) print(“Rhombus Star Pattern”) for i in range(rows, 0, -1): for j in range(1, i): … Read more