# Q1.

for i in range(1, 6):
    for j in range(0, i):
        print("*", end=" ")
    print("")

for k in range(4, 0, -1):
    for l in range(0, k):
        print("*", end=" ")
    print("")

# Q2.

a = input("Kindly Enter a word: ")
print(a[::-1])



4009c0adc32d0a563e69a1c43a8ec388df84641a
<mask token>

for i in range(1, 6):
    for j in range(0, i):
        print('*', end=' ')
    print('')
for k in range(4, 0, -1):
    for l in range(0, k):
        print('*', end=' ')
    print('')
<mask token>
print(a[::-1])

for i in range(1, 6):
    for j in range(0, i):
        print('*', end=' ')
    print('')
for k in range(4, 0, -1):
    for l in range(0, k):
        print('*', end=' ')
    print('')
a = input('Kindly Enter a word: ')
print(a[::-1])

# Q1.

for i in range(1, 6):
    for j in range(0, i):
        print("*", end=" ")
    print("")

for k in range(4, 0, -1):
    for l in range(0, k):
        print("*", end=" ")
    print("")

# Q2.

a = input("Kindly Enter a word: ")
print(a[::-1])


