Question

Write a small program that accepts to represent the following pattern:

1

1   2

1   2    3  

1    2     3   4

23 Apr 2024
Answer :
Word Count : 249

Here is a simple Python program that accepts and represents the given pattern:

```python
# Program to print the pattern

# Loop through 1 to 4 to control the rows
for i in range(1, 5):
    # Loop to print numbers from 1 to i in each row
    for j in range(1, i+1):
        # Print

_________ ____ ______ ________ _____ ___ _____.
_________ ______ __________ _______ _________ ___ ____ ____ _________.
_________ __________ __________ ____ _________ _____ ________ ___ _________ _____ ________.
_____ ____ __________ __________ ________ _________ ___ _______ ____ __________ ____ _______.
_______ ________ ____ ______ ______ ____ ____ _____ _______ ______ _______.
__________ _________ ____ _____ ____ ________ ______ ________.
_______ _____ ______ ___ ______ ________.
____ _______ ___ _______ ________ _____ ____ ___ ______ __________ ______ _____.
_____ ____ ______ _______ ________ _______ ________ ______.
_____ _______ ____ _______ ______ ___.
_________ ____ ________ ________ ___ _________ ___ ______ _______ _______.
__________ ________ _________ _______ ________.
__________ ________ ____ _______ _________ __________ __________ ______ ____ ______ _______ _______.
_______ _________ ___ _________ ______ __________ ______ _________ ___.
_____ ___ ___ __________ _________ ______ _____ ______ ________ __________ ______ ______.
_________ _________ ________ _____ ______ ___ _____ _________ _____.
_____ ____ _____ ____ __________ _________ __________ __________ _______ ____.
_______ ______ ____ ________ _______.
__________ ______ __________ __________ __________ _________ ________ ________ _______ _____ ______ ___.
________ ___ ____ _________ ________ ________.
_____ _____.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MLI 7 2024 - Write a small program that accepts to represent the following pattern: | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→