Below is the program that prompts the user for a positive integer then prints a right-aligned pyramid in python programming language.
rows = int(input("Enter number of rows: "))
for i1 in range(1, rows):
for j1 in range(1, i1 + 1):
# This prints multiplication / row-column
print(i1 * j1, end=' ')
print()
What is Python in programming?
Python is a interpreted, high-level programming, object-oriented, language with a dynamic semantics. Its high-level built-in data structures, combined with dynamic typing and dynamic binding, make it very appealing for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together.
Python's simple, easy-to-learn syntax emphasizes readability, lowering the cost of program maintenance. Python also supports modules as well as packages, which promotes program's modularity and reuse of code. The Python interpreter and extensive standard library are freely distributable and available in source or binary form for all major platforms.
To learn more about Python, visit: brainly.com/question/28379867
#SPJ1