0% found this document useful (0 votes)
3 views7 pages

Python Programming - Complete Practical Assignment

The assignment for the Python Programming course at Hunarmand Punjab focuses on practical tasks covering fundamental to advanced Python concepts, including data structures, functions, and object-oriented programming. Students are required to complete various tasks across 12 parts, culminating in a mini-project that involves creating a Simple Student Management System. The total marks for the assignment are 50, with a submission deadline of 10 days, and students must submit Python scripts along with a screenshot or PDF.

Uploaded by

631302aaa
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 views7 pages

Python Programming - Complete Practical Assignment

The assignment for the Python Programming course at Hunarmand Punjab focuses on practical tasks covering fundamental to advanced Python concepts, including data structures, functions, and object-oriented programming. Students are required to complete various tasks across 12 parts, culminating in a mini-project that involves creating a Simple Student Management System. The total marks for the assignment are 50, with a submission deadline of 10 days, and students must submit Python scripts along with a screenshot or PDF.

Uploaded by

631302aaa
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

HUNARMAND PUNJAB

Course: Python Programming – Basics to Advanced​


Instructor: Akbar Ali​
Assignment Type: Practical + Mini Project​
Total Marks: 50​
Submission Deadline: 10 Days​
Submission Format: Python scripts (.py) + Screenshot/PDF

Assignment Title: Python Programming – Complete


Practical Assignment
Objective:​
This assignment is designed to provide students with hands-on experience in Python
programming, covering fundamentals, data structures, functions, OOP, file handling,
modules, and mini-projects.

Assignment Tasks (Lectures 1–20)


Part 1 – Python Basics (Lectures 1–3) (5 Marks)

●​ Topics: Introduction, Installation, First Program, Variables, Data Types​

●​ Tasks:​

○​ Print “Hello Hunarmand Punjab” using print()​

○​ Declare variables (string, int, float, boolean)​

○​ Perform basic arithmetic operations​

○​ Demonstrate type conversion​


Part 2 – Operators & Expressions (Lecture 4) (3 Marks)

●​ Tasks:​

○​ Use arithmetic, comparison, logical, assignment, and bitwise operators​

○​ Demonstrate expressions with multiple operators​

Part 3 – Control Statements (Lectures 5–6) (5 Marks)

●​ Topics: if, elif, else, nested conditions​

●​ Tasks:​

○​ Write a program to check if a number is positive, negative, or zero​

○​ Create a simple grading system based on marks​

Part 4 – Loops & Iterations (Lectures 7–8) (5 Marks)

●​ Topics: for, while, nested loops, break & continue​

●​ Tasks:​

○​ Print numbers from 1 to 20 using a for loop​

○​ Print even numbers using while loop​

○​ Nested loop to display a multiplication table​


Part 5 – Functions (Lectures 9–10) (5 Marks)

●​ Tasks:​

○​ Create a function to add two numbers​

○​ Function to check if a number is prime​

○​ Demonstrate default arguments, *args, **kwargs​

Part 6 – Lists, Tuples & Sets (Lectures 11–12) (5 Marks)

●​ Tasks:​

○​ Create a list of 5 items and print each item​

○​ Create a tuple and demonstrate immutability​

○​ Create a set and perform union, intersection, and difference​

Part 7 – Dictionaries & Data Handling (Lectures 13–14) (5 Marks)

●​ Tasks:​

○​ Create a dictionary for a student (name, age, grade)​

○​ Access and update values​

○​ Loop through dictionary items and print key-value pairs​

Part 8 – File Handling (Lecture 15) (5 Marks)

●​ Tasks:​

○​ Create a text file and write some content​


○​ Read the file content and display​

○​ Append data to the file​

Part 9 – Modules & Packages (Lecture 16) (3 Marks)

●​ Tasks:​

○​ Import math and random modules​

○​ Use [Link](), [Link](), [Link]()​

Part 10 – Exception Handling (Lecture 17) (3 Marks)

●​ Tasks:​

○​ Handle division by zero using try/except​

○​ Create a program to catch multiple exceptions​

Part 11 – Object-Oriented Python (Lectures 18–19) (5 Marks)

●​ Topics: Classes, Objects, Methods, Constructors, Inheritance, Encapsulation​

●​ Tasks:​

○​ Create a class Student with properties: name, age, grade​

○​ Create a method to display student info​

○​ Create a subclass Teacher inheriting Student and add a subject​


Part 12 – Mini Project (Lecture 20) (6 Marks)

Create a Mini Python Project – Simple Student Management System:

Requirements:

1.​ Menu Options:​

○​ Add student (name, age, grade)​

○​ View all students​

○​ Update student info​

○​ Delete student​

2.​ Use functions for each task​

3.​ Store data in a text file for persistence​

4.​ Bonus (Optional): Use OOP to define Student class and store objects​

Submission Guidelines
●​ Submit all .py files + screenshot of running programs​

●​ Submit in ZIP or PDF format​

●​ Include file names clearly​

●​ Ensure all tasks are complete and functional​


Evaluation Criteria

Section Marks

Python Basics (Lectures 1–3) 5

Operators & Expressions (Lecture 4) 3

Control Statements (Lectures 5–6) 5

Loops & Iterations (Lectures 7–8) 5

Functions (Lectures 9–10) 5

Lists, Tuples & Sets (Lectures 11–12) 5

Dictionaries & Data Handling (Lectures 13–14) 5

File Handling (Lecture 15) 5

Modules & Packages (Lecture 16) 3

Exception Handling (Lecture 17) 3

Object-Oriented Python (Lectures 18–19) 5


Mini Project (Lecture 20) 6

Total 50

Learning Outcomes
After completing this assignment, students will be able to:

●​ Write basic to advanced Python scripts​

●​ Work with operators, loops, conditions, and data structures​

●​ Create reusable functions and handle exceptions​

●​ Work with files, modules, and packages​

●​ Apply object-oriented programming principles​

●​ Build a functional mini-project integrating all skills

You might also like