The document outlines a Python assignment consisting of nine programming tasks, including finding factorials, sorting arrays, calculating grades based on marks, fetching email IDs from a text file, and identifying maximum and minimum numbers in a list. Students are instructed to complete any five of the provided questions. Each task focuses on fundamental programming concepts and functions in Python.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views
Python Assignment
The document outlines a Python assignment consisting of nine programming tasks, including finding factorials, sorting arrays, calculating grades based on marks, fetching email IDs from a text file, and identifying maximum and minimum numbers in a list. Students are instructed to complete any five of the provided questions. Each task focuses on fundamental programming concepts and functions in Python.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Python Assignment
1. Write a python program to find the factorial of a number
2. Write a python program to sort array element in the ascending/descending order 3. Write a python program to input 5 subject marks and calculate total marks, percentage and grade based on following criteria i)percentage less than 50 (Grade C) ii)percentage equal to 50 and less than 80 (Grade B) iii)percentage equal to 80 and more than 80 (Grade A) 4. Write a python program to fetch only Email ID from text file which include following fields -: i)Name ii)Mobile Number iii)Roll Number iv)Email ID 5. Write a python program to find the maximum and minimum number in a list of 10 elements and also find the index position of the following numbers 6. Write a python program to find the intersection of elements from two list 7. Write a function that to check given number is prefect number or not. 8. Write a function called show_stars(rows). If rows is 5, it should print the following: * *** ***** ******* ********* 9. Write a function that prints all the prime numbers between 0 and limit where limit is a parameter.
Note:- Answer any five Question for Python Assignment