Category Archives: Python Star Pattern Programs

Python Program Print Hollow Diamond Star Pattern

Python Program Print Hollow Diamond Star Pattern- # Number of rows row = 7 # this code will print upper part of hollow diamond pattern for i in range(1, row+1): for j in range(1,row-i+1): print(” “, end=””) for j in range(1, 2*i): if j==1 or j==2*i-1: print(“*”, end=””) else: print(” “, end=””) print() # now… Read More »

Loading

Python Program Print Star Pattern 6

Python Program Print Star Pattern 6 – This Python Programming Tutorial will explain the Python program to print the star pattern number 6 as shown in the following figure: The Source Code of Python Program to Print Star Pattern 6 # Write a Python program to display # the following star pattern 6 # using… Read More »

Loading