Answers for "Print a Pattern According to The Given Value of A. Example: For A = 3 pattern looks like: 1 1 2 1 2 3"

0

* pattern by python

def pattern(n):    
  for i in range(0,n):       
    for j in range(0, i+1): 
      print("* " , end="")         
      print("r") pattern(5
Posted by: Guest on December-02-2020

Code answers related to "Print a Pattern According to The Given Value of A. Example: For A = 3 pattern looks like: 1 1 2 1 2 3"

Python Answers by Framework

Browse Popular Code Answers by Language