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

Python Lab Assignment2

The document outlines a Python lab assignment for BCA-VI students at the School of Management Sciences. It includes tasks such as checking the sign of a number, determining even or odd status, finding the largest of three numbers, and various loops for printing sequences, calculating factorials, and generating Fibonacci series. Additionally, it requires creating patterns using nested loops.

Uploaded by

bca2326062
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)
3 views1 page

Python Lab Assignment2

The document outlines a Python lab assignment for BCA-VI students at the School of Management Sciences. It includes tasks such as checking the sign of a number, determining even or odd status, finding the largest of three numbers, and various loops for printing sequences, calculating factorials, and generating Fibonacci series. Additionally, it requires creating patterns using nested loops.

Uploaded by

bca2326062
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

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)

You might also like