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

Python Programming Term Work Guide

The document outlines the term work requirements for a Python programming assignment due by September 25, 2025. It includes a list of 17 programming tasks that cover various concepts such as grade calculation, area calculation, palindrome checking, and set operations. Specific formatting rules and submission guidelines are also provided.

Uploaded by

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

Python Programming Term Work Guide

The document outlines the term work requirements for a Python programming assignment due by September 25, 2025. It includes a list of 17 programming tasks that cover various concepts such as grade calculation, area calculation, palindrome checking, and set operations. Specific formatting rules and submission guidelines are also provided.

Uploaded by

anushkarawat441
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Fundamental of python: TERM WORK – MID Deadline- 25/09/2025 by 2 PM

BCA(AI/DS) 1ST SEM


Rules: -
• Use A4 sheet for all
• Question and objective of program will be added first.
• Pseudo code should be hand written and code will be printed.
• Add Screenshot of output.
• Font Style – Times New Roman
• Heading’s font size – 12 and rest of font size – 11
• Submit in a folder – no binding needed

1. Write a python program to find the grade of the students based on marks scored in 5 subjects..

2. Write a python program to calculate area of triangle by heron’s formulae.

3. Write a python program to check whether a number is palindrome or not.

4. Write a python program to print all the prime numbers below a number taken
as input from the user ( Using while loop)

5. Write a python program to find the sum of the given series up to n numbers taken as input from
the user.
 1+1/!2+1/!3+……..1/!n
 1+22+33+………nn

6. Write a python program to create a list of n numbers taken input from the user. Calculate the
mean, median and mode for the created list.

7. Write a python program to take a string as input and count the vowels, digits and consonants.
Store and display the result in dictionary format.

8. Write a program that extracts and prints the characters from an input string that are present at
prime indices (0-based index) using slicing.
9. Write a program to create two sets taking input from the user and perform the following
operations on them using operators and set methods
 Union
 Intersection
 Symmetric difference
 Difference
 Sets are disjoint or not

10. Write a program to implement a simple calculator . The program should take
three inputs from the user: num1 (first number), num2 (second number) and
operation (a string representing the operation: "add", "subtract", "multiply",
"divide", "mod").
Using the match-case statement, perform the requested operation and print the result. If
the operation is not one of the valid options, print "Invalid operation".

11. Write a program to demonstrate the use of membership operators (in and not in) on the
following data types: String, List ,Tuple ,Dictionary ,Set .
The program should print whether the given element exists or does not exist in each data type.
12. Write a Python program that takes marks obtained by a student in an exam as input (0–100)
and prints the corresponding grade based on the following criteria using if-elif-else:
Marks ≥ 90 → Grade: A+
Marks ≥ 80 and < 90 → Grade: A
Marks ≥ 70 and < 80 → Grade: B
Marks ≥ 60 and < 70 → Grade: C
Marks ≥ 50 and < 60 → Grade: D
Marks < 50 → Grade: F
The program should also handle invalid input (marks less than 0 or greater than 100) by printing
"Invalid marks".

13. Write a program that takes a year as input from the user and determines whether it is a leap year
or not.
14. Write a program that takes an integer input from the user and determines whether the number is
a prime number or not.
15. Write a Python program that takes a positive integer as input and determines whether it is an
Armstrong number or not.
16. Write a Python program that takes an integer as input and checks whether it is a palindrome
number or not.
17. Write a Python program that takes an integer as input and calculates the sum of its digits.

You might also like