Assignment 1 – Python
Date of Issue: 21.08.2025 Date of Submission: 28.08.2025
1. Write a Python program to input 5 subject marks from a user, calculate total, average, and
percentage, and display results in a formatted way.
2. Write a Python program to check whether a given number is prime or not.
3. Create a Python list of 10 integers. Write functions to:
Find the maximum and minimum values.
Sort the list in ascending order (without using built-in `sort ()`).
4. A small company has employee data stored as a dictionary:
```python employees = {
a. 101: {"name": "Alice", "salary": 50000},
b. 102: {"name": "Bob", "salary": 60000},
c. 103: {"name": "Charlie", "salary": 55000}
d. }
Write a Python program to:
Add a new employee.
Update an employee’s salary.
Delete an employee record.
Display all employee details in a tabular format.
5. Write a Python function that takes a string and returns the number of vowels, consonants,
digits, and special characters