please tell the lines for this pattern in python
Attachments:
Answers
Answered by
0
Answer:
please mark me as brainliest
Explanation:
rows = int(input("Enter the number of rows: "))
# the outer loop is executing in reversed order
for i in range(rows + 1, 0, -1):
for j in range(0, i - 1):
print("*", end=' ')
print(" ")
Output:
Enter the number of rows: 5
* * * * *
* * * *
* * *
* *
*
Similar questions
Chemistry,
13 hours ago
History,
13 hours ago
Biology,
13 hours ago
History,
1 day ago
Social Sciences,
8 months ago