The document outlines a series of programming tasks in Python, including demonstrating basic data types, calculating the area of a triangle using Heron's formula, and finding student grades based on marks. Additional tasks involve checking for palindromes, generating prime numbers, calculating statistical measures for a list, and performing various set operations. Each task requires specific input from the user and focuses on fundamental programming concepts.
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 ratings0% found this document useful (0 votes)
4 views2 pages
PYTHON Termwork Questions
The document outlines a series of programming tasks in Python, including demonstrating basic data types, calculating the area of a triangle using Heron's formula, and finding student grades based on marks. Additional tasks involve checking for palindromes, generating prime numbers, calculating statistical measures for a list, and performing various set operations. Each task requires specific input from the user and focuses on fundamental programming concepts.
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
You are on page 1/ 2
1.
Write a python program to demonstrate basic data type and the
concept of object identity. 2. Write a python program to calculate area of triangle by heron’s formulae.
3. Write a python program to find the grade of the students based
on marks scored in 5 subjects. 4. Write a python program to check whether a number is palindrome or not. 5. Write a python program to print all the prime numbers below a number taken as input from the user ( Using while loop) 6. 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
7. 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. 8. 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. 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 10. Write a program that extracts and prints the characters from an input string that are present at prime indices (0-based index) using slicing. 11. 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