Q:

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

0

Star pattern 6

* * * * *
* * * *
* * *
* *
*

All Answers

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

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

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

total answers (1)

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