Alphabetic Symbol
Write a program to print the right alphabetic triangle up to the given N rows.Input
The input will be a single line containing a positive integer (N).Output
The output should be N rows with letters.
Note: There is a space after each letter
.Explanation
For example, if the given number of rows is 4,
your code should print the following pattern.
A
A B
A B C
A B C D
n = int(input("Enter a positive integer: "))
for i in range(n+1):
print()
for j in range(65, 65 + i):
print(chr(j),' ', end='')
Comments
Dear Teja Vuppala ,if you have serious assignment that requires large amount
of work and hence cannot be done for free you can submit it as assignment and our
experts will surely assist you.
when i run this program i am getting space with the outer loop of print function..i want to get an output with out blank space...
Leave a comment