0% found this document useful (0 votes)
47 views1 page

Nested For Loop Exercises

The document contains a list of exercise questions focused on using nested for loops in Python. It includes tasks such as printing various patterns (stars, numbers, alphabets), generating multiplication tables, and identifying prime numbers. Each exercise is designed to enhance understanding of nested loops through practical coding challenges.

Uploaded by

bsprmd.6000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views1 page

Nested For Loop Exercises

The document contains a list of exercise questions focused on using nested for loops in Python. It includes tasks such as printing various patterns (stars, numbers, alphabets), generating multiplication tables, and identifying prime numbers. Each exercise is designed to enhance understanding of nested loops through practical coding challenges.

Uploaded by

bsprmd.6000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Nested For Loop in Python - Exercise Questions

1. Print the following pattern:

**

***

****

*****

2. Print a multiplication table from 1 to 10 using nested for loops.

3. Print a square pattern with numbers from 1 to n in each row and column.

4. Create a pyramid pattern using numbers.

5. Print a right-angled triangle pattern of alphabets (A, B, C, ...).

6. Write a program to print all pairs of numbers between 1 to 5.

7. Print a pattern of decreasing stars:

*****

****

***

**

8. Print the Pascals Triangle using nested loops.

9. Generate a checkerboard pattern of size 8x8 using stars and spaces.

10. Print all prime numbers between 1 to 100 using nested loops.

You might also like