0% found this document useful (0 votes)
16 views3 pages

Class 09 Python Programs Loops

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)
16 views3 pages

Class 09 Python Programs Loops

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/ 3

DELHI PUBLIC SCHOOL-BOPAL, AHMEDABAD

PRACTICAL FILE: ARTIFICIAL INTELLIGENCE

Class: IX Programs on LOOPS

1. Any Python software can be used to solve the programs.


2. For each program, the code as well as the output should be clearly printed.
3. Link to the Google Colab Template file is shared as a reference.

Link for Google Colab: https://colab.research.google.com/drive/1CWARNB1LxoiJMA_IUJ23Lle7nW8QFX4I?usp=sharing

1. WAP to display first ‘n’ numbers using for loop.

2. WAP to display odd numbers below ‘n’ using for loop .

3. WAP to display first ‘n’ odd numbers using for loop .

4. WAP to display even numbers below ‘n’ using for loop.

5. WAP to display first ‘n’ even numbers for loop.

6. WAP to display the sum of first ‘n’ numbers using for loop .

7. WAP to display the factorial of ‘n’ using for loop.

8. WAP to display all numbers in a range using while loop.

9. WAP to display numbers below ‘n’ in reverse order using while loop.

10. WAP to reverse a numbers using while loop.

11. WAP to find the sum of digits of a number using while loop.

12. WAP to display the multiplication table of ‘n’ for ‘m’ rows using while loop.
13. WAP to find whether the given number is a prime or not using while loop.

14. WAP to find whether the given number is a perfect number or not using while loop.

15. WAP to find whether the given number is an armstrong number or not using while loop.

16. WAP to create the following pattern using nested loop

17. WAP to create the following pattern using nested loop

18. WAP to create the following pattern using nested loop

19. WAP to create the following pattern using nested loop


20. WAP to create the following pattern using nested loop

Could not connect to the reCAPTCHA service. Please check your internet connection and reload to get a reCAPTCHA challenge.

You might also like