BCA-VI
SCHOOL OF MANAGEMENT SCIENCES
PYTHON LAB ASSIGNMENT- II
Write a Python Program to:
1. Check whether a number is positive, negative, or zero.
2. Check whether a number is even or odd.
3. Find the largest among three numbers.
Perform the following problems using for as well as while loop:
4. Print numbers from 1 to 20 using:
5. Print the multiplication table of a given number.
6. Calculate factorial of a number using a loop.
7. Print the sum of first N natural numbers.
8. Print all even numbers between 1 and 100.
9. Check whether a number is prime.
10. Print Fibonacci series up to N terms.
11. Count digits in a number.
12. Reverse a number using loop.
13. Print numbers from 1 to 50 but stop if number divisible by 7 is found.
14. Skip all multiples of 5 while printing numbers from 1 to 30.
Print any five patterns of numbers and symbols (Use of Nested Loop)