Learn practical skills, build real-world projects, and advance your career
!pip install jovian --upgrade --quiet
line = '*'
while len(line) <= 20:
    print(line)
    line = line + '**'
* *** ***** ******* ********* *********** ************* *************** ***************** *******************
# diamond like shape
    
# triangle shape
line = '*'
while len(line) <= 20:
    print(line)
    line = line + '*'
    
while len(line) > 0:
    print(line)
    line = line[:-1]
* ** *** **** ***** ****** ******* ******** ********* ********** *********** ************ ************* ************** *************** **************** ***************** ****************** ******************* ******************** ********************* ******************** ******************* ****************** ***************** **************** *************** ************** ************* ************ *********** ********** ********* ******** ******* ****** ***** **** *** ** *