sequence of letters

Write a program that uses exactly four for loops to print the sequence of letters below:
AAAAAAAAAA
BBBBBBB
CCCCCC
EEEEE
Total : 1 Discussion
Login
Romy
    
Tried the following code but system not able to validate it
for i in range(10):
  print("A", end="")
print("\n")
for i in range(7):
  print("B", end="")
print("\n")
for i in range(6):
  print("C", end="")
print("\n")
for i in range(5):
  print("E", end="")
Reply