Q:

Print downward Half-Pyramid Pattern with Star (asterisk) using Python programming

belongs to collection: Python Basic Exercises for Beginners

0

Print downward Half-Pyramid Pattern with Star (asterisk)

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

All Answers

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

Solution:

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

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

total answers (1)

Write a function called exponent(base, exp) that r... >>
<< Print multiplication table form 1 to 10 using Pyth...