KTU 2024 Scheme · Semester 3 · Program Core Lab — Artificial Intelligence
Python Programming Lab (PCCAL308) Syllabus
Official KTU 2024 Scheme syllabus for Python Programming Lab, Semester 3, Program Core Lab — Artificial Intelligence (Artificial Intelligence).
Course Code
PCCAL308
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
Semester
Semester 3
Course Objective
To equip the learner to use Python data structures such as lists, tuples, sets and dictionaries in solving problems, and constructs such as strings, functions, modules, regular expressions, turtle and Tkinter, and to introduce the fundamentals of data analysis using NumPy, Pandas and SciPy.
Module-wise Syllabus
Module 1
1. Sort a list of tuples based on the second element of each tuple. 2. Count the occurrences of each word in a given text and store the result in a dictionary. 3. Find all unique elements in a list. 4. Create a set of squares of all even numbers between m and n using set comprehension. 5. Use sets to find all unique characters in a string. 6. Take a list of numbers and return a new list containing only the even numbers. 7. Turtle program to draw an equilateral triangle, modified to draw triangles of different sizes. 8. Turtle program to draw a flower with a specified number of petals. 9. A basic calculator (addition, subtraction, multiplication, division) using Tkinter. 10. A digital clock that displays the current time and updates every second using Tkinter. 11. Copy the contents of one text file to another. 12. Merge the contents of two text files into a third file. 13. Using NumPy, create an array of 10 random numbers and calculate the mean and standard deviation. 14. Using NumPy, create a 3x3 integer matrix, reshape it into a 1D array and flatten it back to 2D. 15. Using NumPy, create two 3x3 matrices and perform matrix multiplication. 16. Using Pandas, load a CSV file into a DataFrame, display the first five rows and calculate the mean of a specified column. 17. Using Pandas, read a CSV file and find the sum, mean and standard deviation of a specified column. 18. Using Pandas, load a CSV file, remove duplicate rows and display the cleaned DataFrame. 19. Using Matplotlib, plot a line graph of a dataset representing monthly sales figures.
Course Outcomes
- CO1Choose control structures and functions in Python to solve complex problems.
- CO2Utilize Python libraries for data manipulation and analysis.
- CO3Develop geometric shapes using Turtle and basic GUI applications using Tkinter.
- CO4Make use of file handling and basic data visualization in Python.
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
- Learning Python — Mark Lutz (O'Reilly Media, 5th edition, 2013)
- Python Crash Course: A Hands-On, Project-Based Introduction to Programming — Eric Matthes (No Starch Press, 2nd edition, 2019)
- Python for Everyone — Cay S. Horstmann, Rance D. Necaise (Wiley, 3rd edition, 2024)
Reference Books
- Automate the Boring Stuff with Python: Practical Programming for Total Beginners — Al Sweigart (No Starch Press, 2nd edition, 2019)
Frequently Asked Questions
How many credits is KTU Python Programming Lab (PCCAL308)?
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 PCCAL308 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 PCCAL308?
Learning Python (Mark Lutz); Python Crash Course: A Hands-On, Project-Based Introduction to Programming (Eric Matthes); Python for Everyone (Cay S. Horstmann, Rance D. Necaise).
Is this syllabus specific to one branch, or common to others too?
This Semester 3 course is listed under Program Core Lab — Artificial Intelligence at KTU under the 2024 Scheme — check the course header above for which branches it's common to.
Need help with KTU Python Programming Lab?
Learnizo offers live, 1-on-1 online tuition for KTU AI subjects — matched to your exact module and semester.