Answer to Question #242781 in Python for saksham

Question #242781
Pattern - 2:
Write a program that print Right-angled Pattern with Same Character
1
Expert's answer
2021-09-27T04:52:46-0400


def right_angle(r, k):
    i = 1
    while (i<=r):
        j = 1
        while (j<=i):
            print(k, end='  ')
            j = j+1 
        i = i + 1 
        print()


right_angle(5, '*')   
    
    







Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS