KTU 2024 Scheme · Semester 3 · Program Core Lab — Information Technology
Programming in Python Lab (PCITL307) Syllabus
Official KTU 2024 Scheme syllabus for Programming in Python Lab, Semester 3, Program Core Lab — Information Technology (Information Technology).
Course Code
PCITL307
Credits
2
Teaching Hours
0:0:3:0 (L:T:P:R)
CIE Marks
50
ESE Marks
50
Exam Duration
2 Hrs 30 Min
Prerequisites
UCEST105: Algorithmic Thinking with Python
Semester
Semester 3
Course Objective
To develop skills in text processing, advanced function handling and exception handling, and to provide hands-on experience with image processing techniques and object-oriented programming principles.
Module-wise Syllabus
Module 1
1. List creation and list operations, advanced list comprehension, tuples and tuple operations, dictionary creation and operations. 2. Text processing: find all names with 3-digit area code phone numbers in an input file using regular expressions; check the validity of a password; validate a mobile number. 3. Working with functions: the chickens-and-rabbits heads and legs puzzle using solve(heads, legs); selecting a maximum-sum fair (alternating positive/negative) subsequence from an array using functions; working with lambda functions. 4. Exception handling and user-defined exceptions: catch different types of exceptions and create user-defined exceptions. 5. File handling: a menu-driven program managing book records in a binary file (book.dat) using pickling - add, display, search by author, search by price, copy costly books to a new file, delete and update records. 6. Working with data: querying an SQLite database (insert, update, select, delete); comparing data in a CSV file and writing to a new CSV file. 7. Getting data from the web and JSON: scrape HTML content from a page and parse it with Beautiful Soup; serialize and deserialize JSON. 8. Image processing: reading, saving and displaying an image using OpenCV and matplotlib. 9. Advanced image processing: image statistics and cropping, converting RGB images to gray and resizing, skin color detection. 10. Basic object-oriented programming: a Person class with get_bmi_result(); operator overloading. 11. Advanced object-oriented programming: various kinds of inheritance; abstract classes and abstract methods. 12. A micro project using any of the Python concepts of experiments 1-11 (groups of up to 4 students; demonstration and presentation of up to 10 minutes).
Course Outcomes
- CO1Apply advanced list comprehensions, tuples and dictionaries for efficient data manipulation and develop text processing scripts, including functions with advanced argument handling and lambda functions.
- CO2Implement robust programs using exception handling and user-defined exceptions.
- CO3Implement file operations, work with relational databases, CSV and web-based data sources effectively.
- CO4Perform basic and advanced image processing using libraries such as OpenCV and matplotlib, and demonstrate basic and advanced object-oriented programming concepts.
Assessment Pattern (CIE: 50 marks, ESE: 50 marks)
Continuous Internal Evaluation (CIE)
| Attendance | 5 |
| Preparation / Pre-Lab Work, Experiments, Viva, Timely Completion of Lab Reports / Record (Continuous Assessment) | 25 |
| Internal Examination | 20 |
End Semester Examination (ESE)
Total 50 marks, 2 Hrs 30 Min. See the official KTU syllabus document for the exact Part A / Part B question pattern for this course.
Textbooks & Reference Books
Textbooks
- How to Think Like a Computer Scientist: Learning with Python — Allen Downey, Jeffrey Elkner, Chris Meyers (Green Tea Press, 1st edition, 2002)
- Learning Python: Powerful Object-Oriented Programming — Mark Lutz (O'Reilly Media, 5th edition, 2013)
Reference Books
- Problem Solving and Python Programming — S. A. Kulkarni (Yes Dee Publishing, 2nd edition, 2008)
Frequently Asked Questions
How many credits is KTU Programming in Python Lab (PCITL307)?
2 credits, with 0:0:3:0 (L:T:P:R) teaching hours per week, under the KTU 2024 Scheme.
How many modules are in the PCITL307 syllabus?
1 modules.
What is the CIE and ESE mark split for this course?
CIE (Continuous Internal Evaluation): 50 marks. ESE (End Semester Examination): 50 marks, 2 Hrs 30 Min. Total: 100 marks.
What are the recommended textbooks for PCITL307?
How to Think Like a Computer Scientist: Learning with Python (Allen Downey, Jeffrey Elkner, Chris Meyers); Learning Python: Powerful Object-Oriented Programming (Mark Lutz).
Is this syllabus specific to one branch, or common to others too?
This Semester 3 course is listed under Program Core Lab — Information Technology at KTU under the 2024 Scheme — check the course header above for which branches it's common to.
Need help with KTU Programming in Python Lab?
Learnizo offers live, 1-on-1 online tuition for KTU IT subjects — matched to your exact module and semester.