Q:

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

0

Star pattern 10

     *

    **

   ***

 ****

*****

All Answers

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

for g in range (6,0,-1):
    print(g * ' ' + (6-g) * '*')

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

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now