Q:

Star pattern : 4، write python program to print the following pattern

0

Star pattern : 4

           *

        ***

      *****

   *******

*********

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

k = 16
tim = 1
for i in range(0, 5):
    for j in range(0, k):
        print(end=" ")
    k = k - 4
    for j in range(0, tim):
        print("* ", end="")
    tim = tim + 2
    print()

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Star pattern : 5، write python program to print t... >>
<< Star pattern : 3، write python program to print t...