# Important Python Loop Programs for Class 11 Practical File

In this article, You will get important python loop programs for class 11. These programs are very helpful for your practical records and can be used in your practical file as well. Let us begin!

Topics Covered

## Python Loop Programs for Class 11

In the first section of Python Loop Programs for Class 11, I will provide you some while loop programs. Write Python programs to do the following.

### While Loop – Python Loop Programs for Class 11

Watch this video for Explanation:

1. Generate a series of 1 to n Numbers.
2. Develop a series of odd numbers from 1 to n.
3. Print a series of numbers divisible by 3 from 1 to n.
4. Create a series of square numbers from 1 to n.
5. Display all multiples of 4 starting from 11 to 100.

In the next section of Python Loop Programs for Class 11 you will get programs based on reverse number.

### Reverse Number Based Programs

1. Reverse the entered number by printing the remainder.
2. Reverse the entered number. (Do not print the remainder)

3. Sum of each digit from a number.

4. Check no. is palindrome or not.

5. Check no. is Armstrong or not.

6. A series program: 1 4 9 16 25 36 and so on

7. Power of n starting with 1 3.

8. Find the factorial of n! 4. Factorial series

9. Sum of series

10. Conversion of a number

11. A menu Driven simple calculator

### For loop based programs:

[12] Find average of list of numbers entered through keyboard.

[13] Take a number as input and check whether number is

[14]    SUM = 1 + 4 – 9 + 16 – 25 + 36 – … and so on

[15]    SUM = 12+22+32+42+52+62+72+.. and so on

[16]    SUM = x – x3/3! + x5/5! – x7/7! + x9/9! -… and so on

[17]    SUM = e1 +e2 +e3 +e4 +e5+… and so on

[18]    SUM = 1 + 2 + 6 + 24 + 120 + … and so on

[19]    SUM = 1 + 1/4 + 1/9 + 1/16 + 1/25 + and so on

[20]    SUM = 1 + 8 + 27 + 64 + … and so on

[21]    To print multiplication table from 1×1 to 10×10.

[22]    To compute the sum of the digits of a given positive integer number.

[23]    To read any five real numbers and print the average value.

[24]    To calculate the sum of first  N natural numbers.

[25]    To calculate the average of first N odd numbers.

[26]    To calculate the average of first N even numbers.

### Pattern based programs

[27]       1                                         [28]                           1

1  2                                                                 2   1

1   2   3                                                        3   2   1

1   2   3   4                                              4   3   2   1

1   2   3   4   5                                    5   4   3   2   1

[29]       1                                         [30]                           1

2  2                                                                 2   2

3   3   3                                                        3   3   3

4   4   4   4                                              4   4   4   4

5   5   5   5   5                                    5   5   5   5   5

[31]                     1                           [32]                      1

2        2                                              1        2

3        3        3                                    1        2        3

4        4        4        4                           1        2        3        4

[33]       5   5   5   5   5                      [34]                           a

4  4   4   4                                                        b   b

3   3   3                                                        c   c   c

2   2                                                       d   d   d   d

1                                                       e   e   e   e   e

[35]   5   4   3   2   1                                [36]   1   2   3   4   5

5   4   3   2                                                   2   3   4   5

5   4   3                                                            1   2   3

5   4                                                                      1   2

5                                                                                1

[37]   A   B   C   D  E                                [38]   a   b   c   d   e

A   B   C   D                                                  a   b   c   d

A   B   C                                                            a   b   c

A   B                                                                      a   b

A                                                                                a

[39]                 a                                     [40]                 *

a        b                                                   *        *

a        b        c                                          *        *        *

a        b        c        d                                *        *        *        *

[41]                      1                                [42]  *                                *

1        1                                    *   *                      *   *

1        2        1                                *   *   *            *   *   *

1        3        3        1                           *   *   *   *   *   *   *   *

1        4        6        4        1                      *   *   *   *   *   *   *   *

[43]                  *                                    [44]      *   *   *   *   *

*        *                                              *                 *

*        *        *                                         *                 *

*        *        *        *                                    *                 *

*        *        *                                         *                 *

*        *                                              *                 *

*                                                   *   *   *   *   *

[45] A                                                     [46]      Z

A   B                                                            Z   Y

A   B   C                                                       Z   Y   X

A   B   C   D                                                  Z   Y   X   W

A   B   C   D  E                                              Z   Y   X   W  V

A   B   C   D  E   F                                         Z   Y   X   W  V   U

[47]                      A                                [48]                      Z

A        B                                                   Z        Y

A        B        C                                         Z        Y        X

A        B        C       D                               Z        Y        X        W

A        B        C       D       E                      Z        Y        X        W       V

[49] 1                                            [50]                             1

1   4                                                                      4   1

1   4   9                                                            9  4   1

1   4   9   16                                                 16 9  4   1

1   4   9   16 25                                       25 16 9  4   1

[51]                      0                      [52]                           0

1   0   1                                              -1 0   1

2   1   0   1   2                                    -2 -1 0   1   2

3   2   1   0   1   2   3                           -3 -2 -1 0   1   2   3

4   3   2   1   0   1   2   3   4                 -4 -3 -2 -1 0   1   2   3   4

[53] A diamond pattern is formed with a given letter of the alphabet. Write a program to generate and display such by accepting any character and total number of lines (say N).  Assume  N is an odd number.

For example, if the accepted character is ‘V’ and N = 4,  then your program should display the following output :

V

V        V

V        V        V

V        V        V        V

V        V        V

V        V

V

[54] A pattern is constructed by stacking up 3 basic triangles formed with stars. The figure below shows each basic triangle having 3 layers of stars :

[55] Generate the following “pyramid” of digits.

[56] Find the value of the following formula : nCr = n!/(r! * (n-r)! )

[57] To find the value of the following formula : nPr = n!/(n-r)!

That’s all from today’s practical list. As while and for loops are important part of programing for further learning, more programs are provided.

Share this practical list with people who are interested to learn python.

#### program to print a table of an entered number n computer science class 11

##### 2 thoughts on “Important Python Loop Programs for Class 11 Practical File”
1. Alankrita Verma says:

Please provide the solutions to the patter problems.

1. Yes, it will come on YouTube channel #TutorialAICSIP. Actually I give time to students to do themselves and the I will provide the solutions.