Answer to Question #321328 in Python for chaitanya

Question #321328

if a given integer in "N". write a program to print the right angled triangle pattern of "N" rows and there is a lhytopenus line using "/" of same number

-------
|
|
|
|
|
|
|
1
Expert's answer
2022-06-13T08:29:11-0400
n = int(input())
print("-"*n + "\n|"*n)

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