try:
    n = int(input("Berapa tingkat = "))
except ValueError:
    print('Harus berupa angka')
    exit()
def bintang(n):
    if n > 0 :
        for i in range(n):
            a = "*" + "**"*i
            print(a.center(10," "))
    else:
        print("Angkamu negatif")
bintang(n)

96f8d6fc1575f4772f016389d8d400ec629a9889
<mask token>

<mask token>


def bintang(n):
    if n > 0:
        for i in range(n):
            a = '*' + '**' * i
            print(a.center(10, ' '))
    else:
        print('Angkamu negatif')


<mask token>

try:
    n = int(input('Berapa tingkat = '))
except ValueError:
    print('Harus berupa angka')
    exit()


def bintang(n):
    if n > 0:
        for i in range(n):
            a = '*' + '**' * i
            print(a.center(10, ' '))
    else:
        print('Angkamu negatif')


bintang(n)

try:
    n = int(input("Berapa tingkat = "))
except ValueError:
    print('Harus berupa angka')
    exit()
def bintang(n):
    if n > 0 :
        for i in range(n):
            a = "*" + "**"*i
            print(a.center(10," "))
    else:
        print("Angkamu negatif")
bintang(n)
