Answer to Question #221169 in Python for Hari nadh babu

Question #221169

Right Angled Triangle - 3


This Program name is Right Angled Triangle - 3. Write a Python program to Right Angled Triangle - 3, it has two test cases


The below link contains Leap Year question, explanation and test cases


https://drive.google.com/file/d/1gSyv9i4BdnUeFcZrVWRneMTROebbSYOL/view?usp=sharing


We need exact output when the code was run

1
Expert's answer
2021-08-01T00:29:05-0400
n = int(input('Enter positive integer here: '))
n1 = n + 1
print('-' * n1)
for I in range(1,n1):
    print('|' + ' '*(n-I)+'/')

Enter positive integer here: 5
______
|    /
|   /
|  /
| /
|/



Enter positive integer here: 7
________
|      /
|     /
|    /
|   /
|  /
| /
|/

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