# Tag Archives: Python Pattern-printing

Given an integer n, the task is to write a python program to print diamond using loops and mathematical formulations. The minimum value of n… Read More
Given an even integer input, the task is to write a Python program to print a heart using loops and mathematical formulations. Example : For… Read More
Given a number n, the task is to write a Python program to print a half diamond pattern of numbers with a star border. Examples:… Read More
Pascal’s triangle is a pattern of the triangle which is based on nCr, below is the pictorial representation of Pascal’s triangle. Example: Input: N =… Read More
Let us see how to print an inverted heart pattern in Python. Example: Input: 11 Output: * *** ***** ******* ********* *********** ************* *************** *****************… Read More
Give an integer N and the task is to print hollow half diamond pattern. Examples: Input : 6 Output : # # # # #… Read More
Given a number n, the task is to print ‘K’ using alphabets.Examples:  Input: n = 5 Output: A B C D E F A B… Read More
Given an integer N, the task is to print half-diamond-star pattern. ************************************ Examples: Input: N = 3 Output: * ** *** ** * Input: N… Read More
Print the pattern in which there is a hollow square and plus sign inside it. The pattern will be as per the n i.e. number… Read More
Given an integer N, the task is to print a number diamond of size N in rangoli style where N means till Nth number from… Read More
Given a number n. The task is to print n-integers n-times (starting from 1) and right rotate the integers by after each iteration.Examples:   Input: 6… Read More
The program must accept an integer N as the input. The program must print the desired pattern as shown in the example input/ output. Examples:… Read More
Given user input, this Python3 program will print the input in designed font. In this article, we will do some cool Python trick. For the… Read More
Here we are going to print inverted star pattern of desired sizes. Examples: 1) Below is the inverted star pattern of size n=5 (Because there… Read More
Given a number n, write a program to print a diamond shape with 2n rows.Examples :     Recommended: Please try your approach on {IDE} first,… Read More