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

Python Programming - Master Class Practical Assignment

The assignment for the Python Programming Master Class focuses on enhancing programming skills through practical tasks and mini projects, covering topics like control flow, data structures, functions, OOP, and file handling. Students are required to complete various parts, including creating a simple calculator, implementing loops, and building mini projects such as a game and a registration system. The total marks for the assignment are 50, with a submission deadline of 10 days, and students must submit Python scripts along with screenshots or PDFs.

Uploaded by

mw955833
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)
2 views7 pages

Python Programming - Master Class Practical Assignment

The assignment for the Python Programming Master Class focuses on enhancing programming skills through practical tasks and mini projects, covering topics like control flow, data structures, functions, OOP, and file handling. Students are required to complete various parts, including creating a simple calculator, implementing loops, and building mini projects such as a game and a registration system. The total marks for the assignment are 50, with a submission deadline of 10 days, and students must submit Python scripts along with screenshots or PDFs.

Uploaded by

mw955833
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 – Master Class​


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

Assignment Title: Python Programming – Master Class


Practical Assignment
Objective:​
This assignment strengthens Python programming skills from basics to advanced. Students will
work on control flow, data structures, functions, OOP, file handling, modules, and real-world
projects including a game, registration system, and authentication system.

Assignment Tasks
Part 1 – Python Basics & Input/Output (5 Marks)

●​ Files: Python Basics Class, Master Class\[Link]​

●​ Tasks:​

○​ Print messages using print()​

○​ Read input from the user​

○​ Use basic arithmetic operators (+, -, *, /)​

○​ Write a simple calculator program​


Part 2 – Control Flow & Loops (5 Marks)

●​ Files: Contorl_Flow_Conditionals_and_loops.py, Master


Class\[Link], Master Class\[Link]​

●​ Tasks:​

○​ Implement if-elif-else statements​

○​ Use for, while loops, break & continue​

○​ Nested loop examples​

○​ Hands-on project: multiplication table using loops​

Part 3 – Data Structures (5 Marks)

●​ Files: Data_Structures.py, Master Class\[Link], Master


Class\[Link], Data_str_Stud_mark_system.py​

●​ Tasks:​

○​ Work with lists, tuples, sets, and dictionaries​

○​ Perform CRUD operations​

○​ Create a student mark system storing grades​


Part 4 – Functions & Modules (5 Marks)

●​ Files: Master Class\[Link], funcations_and_Modules.py,


[Link], [Link]​

●​ Tasks:​

○​ Create reusable functions with parameters and return values​

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

○​ Import and use custom modules ([Link])​

Part 5 – Strings & File Handling (5 Marks)

●​ Files: Master Class\[Link], File_Handling.py,


working_with_String.py,
working_with_Formatted_user_profile_System.py​

●​ Tasks:​

○​ Perform string operations (len(), upper(), lower(), slicing, concatenation)​

○​ Read/write text files ([Link], [Link])​

○​ Store formatted user profiles​


Part 6 – Exception & Error Handling (5 Marks)

●​ Files: Error_Handling.py, Exception_handling.py, error_log.txt​

●​ Tasks:​

○​ Handle runtime errors using try/except​

○​ Catch multiple exceptions​

○​ Log errors in a file (error_log.txt)​

Part 7 – Object-Oriented Programming (OOP) (5 Marks)

●​ Files: object_oriented_programming.py, inheritance_&_polymorphism.py​

●​ Tasks:​

○​ Create classes, objects, methods, constructors​

○​ Implement inheritance, encapsulation, polymorphism​

○​ Hands-on: Build a class Student and subclass Teacher​

Part 8 – JSON & Data Storage (5 Marks)

●​ Files: [Link]​

●​ Tasks:​

○​ Read/write JSON data​

○​ Create a student data management system using JSON​


Part 9 – Mini Projects (10 Marks)

Create three mini projects in Python:

1.​ Interactive Game (e.g., Number Guessing Game)​

○​ Generate a random number​

○​ Allow user to guess​

○​ Give hints (higher/lower)​

○​ Show attempts count​

2.​ Registration System​

○​ User inputs: name, email, password​

○​ Store data in a text file or JSON ([Link] or [Link])​

○​ Validate inputs (e.g., email format, password length)​

3.​ Authentication System​

○​ User login with email and password​

○​ Check credentials against stored data​

○​ Display success/failure messages​

Part 10 – Combined Hands-on Exercises (5 Marks)

●​ Files: [Link], Loops_hands_on_project.py,


working_with_Formatted_user_profile_System.py​

●​ Tasks:​

○​ Integrate loops, functions, and OOP into a single script​

○​ Display interactive results​


○​ Bonus: Apply exception handling in combined scripts​

Submission Guidelines
●​ Submit all Python .py files + screenshots of outputs​

●​ Submit as ZIP or PDF​

●​ Clearly name files as listed in the assignment​

●​ Ensure all tasks are complete and functional​

Evaluation Criteria
Section Marks

Python Basics & I/O 5

Control Flow & Loops 5

Data Structures 5

Functions & Modules 5

Strings & File Handling 5

Exception Handling 5

OOP (Classes & Inheritance) 5

JSON & Data Storage 5

Mini Projects (Game, Registration, Authentication) 10


Combined Hands-on Exercises 5

Total 50

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

●​ Write Python programs from basics to advanced level​

●​ Apply control flow, loops, and data structures effectively​

●​ Create reusable functions and use custom modules​

●​ Handle exceptions and errors gracefully​

●​ Work with files and JSON for data storage​

●​ Implement OOP concepts including classes, inheritance, and polymorphism​

●​ Build interactive real-world mini-projects: a game, registration system, and


authentication system​

You might also like