Decode the logic and print the pattern in python
Answers
Answered by
13
Explanation:
The algorithm to print the pattern using for loop in Python:
Accept the number of rows from user using input() function to decide the size of a pattern.
Iterate the number of rows using outer for loop and range() function.
Next, the inner loop or nested for loop to handle the number of columns.
Similar questions