Program to construct the pattern, using for loop

In this program, we will construct the pattern, using a for loop.

Steps to solve the program
  1. Use for loop to print the given pattern.
  2. During iteration multiply each number by “*“.
  3. Print the output.
				
					
for i in range(6):
    print(i*"*")
				
			

Output :

				
					
*
**
***
****
*****
				
			

numbers which are divisible by 5 in 0-100

construct the following pattern

Leave a Comment