#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep  9 22:11:02 2019

@author: nshefeek
"""
def print_triangle(n):
    if n<0:
        return
 
    for i in range(n+1):
       print((n-i)*' ', i*' *', sep='')
        
print_triangle(11)

6021e010a97faa8ae65dc1320c58f16d623c8730
<mask token>

<mask token>


def print_triangle(n):
    if n < 0:
        return
    for i in range(n + 1):
        print((n - i) * ' ', i * ' *', sep='')


<mask token>

<mask token>


def print_triangle(n):
    if n < 0:
        return
    for i in range(n + 1):
        print((n - i) * ' ', i * ' *', sep='')


print_triangle(11)

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep  9 22:11:02 2019

@author: nshefeek
"""
def print_triangle(n):
    if n<0:
        return
 
    for i in range(n+1):
       print((n-i)*' ', i*' *', sep='')
        
print_triangle(11)
