Question.1 Write a Python program to print the following star pattern:
''' * ** *** **** ***** '''# Solution
for i in range(1,6): for j in range(1,i+1): print("*", end="") print()
Question.2 Write a Python program to print the following star pattern:
''' * ** *** **** ***** '''# Solution
for i in range(1,6): for j in range(1,6-i): print(" ", end="") for k in range(1,i+1): print("*", end="") print()
Question.3 Write a Python program to print the following star pattern:
''' * *** ***** ******* ********* '''# Solution
for i in range(1,6): for j in range(1,6-i): print(" ", end = "") for k in range(1, (2*i)): print("*", end = "") print()
Question.4 Write a Python program to print the following star pattern:
''' ***** **** *** ** * '''# Solution
for i in range(1,6): for j in range(0, i-1): print(" ", end = "") for k in range(1,6-i+1): print("*", end = "") print()