The Superior University, Lahore
Faculty of Computer Science & Information Technology
Course Outline
Course Course Programming Fundamentals
Informatio Title
n Course ID CPR601250 Course Type Computing Elective
Credit 4 Hours per 4(3-1)
hours week (C-L)
Programs BS (DS) (AI) Preferred
Semester
Date 2024-01-05 Version 2.0
Offered Program(s) BSDS-AI Semester Spring 2024
Course Session
Informatio Instructor( Hafiz Muhammad Tayyab Khushi TA / Lab
n s) Engineer
QCH Mr. Ahmad Amin Telephone
No. / Ext.
Email [Link]@[Link]. Class Hours
pk
Office / Office No. 28 Office Hours
Room No.
Course This course is designed to teach object-oriented programming techniques to those who
Descriptio have learned basic programming concepts. In this course following topics will be covered:
n a brief review structured data type, Classes, Objects, Data Abstraction; Data Encapsulation;
Polymorphism; and Inheritance; Overloaded Operators; Overridden Methods; Friend
Functions; Virtual Functions; File Handling (Streams and Files. Python programming
language is used to demonstrate the object-oriented programming constructs.
Course At the end of this course students will be able to;
Learning No. Outcome Domain Taxon PLO
Outcomes omy #
(CLO) Level
CLO1. Explain principles of programming Cognitive C2 2
fundamentals
paradigm.
CLO2. Cognitive C4 4
CLO3. Cognitive C4 1
Lecture Class room Lectures, Lab Sessions, Project Presentation
type
Prerequisi
tes
Follow up Object Oriented Programming
Courses
Title Editi Authors Publish Year ISBN
Textbook on er
Fundamental of Python First 2nd Kenneth
Page 1 of 6
Program Ed A. Lambert
Course Jupyter notebook
Software Anaconda
or Tool
Assessmen Assessment Weigh Used to Assessment Weight Used to attain
t t attain CLO CLO
Criteria Assignment 10% CLO1,2 Quiz 10% CLO2,3
(100%) Quizzes 10% CLO1,3 Project / 10%
Presentation
Term 20% - Mid 20% -
Project
Mid Term 20% CLO1,2,3 Final 40% CLO3,4
Final Term 40% CLO1,2,3 Project 20% -
Methods Quizzes, Case study / project, Final exam, Lab, Project
of
Evaluation
Wee Topic Lecture Contents Relation with
k CLO
No.
W1. Introduction L1 Introduction to Python CLO1, CLO2
o Fundamentals of Python
o What is Python
o What can Python do?
o Why Python?
L2 o Python Syntax compared to other
programming languages
o Key Difference Between Python and C++
W2. Python Basics L3 o Comments, CLO2, CLO4
o Multiline comments
o Single line comments
o Variables
o Variable declaration
o Python Indentation
o User input and output
L4 o Assigning multiple values
o Output variable
o Global variable
o Data types
W3. Python L5 o Python Number systems CLO2, CLO3
Number o Complex number systems
systems and o Type conversion
strings o Random numbers
o Python casting
L6 o Python strings
o Slicing strings
o Modify strings
o Concatenate strings
o Format strings
W4. Python L7 o Escape characters CLO2, CLO4
Operators o String methods
o Boolean values
o Evaluate values and variables
L8 o Python Operators
o Arithmetic operators
o Assignment operators
o Comparison operators
o Logical operators
W5. Lists L9 o Python List CLO2, CLO4
o Access list elements
o Change list elements
o Add list elements
o Remove list elements
o Loop list
L10 o List Comprehensions
o Sort list
o Copy list
o Join list
o List methods
o List Practice exercise
W6. Tuples L11 o Python Tuples CLO2,4
o Access tuples
o Update tuples
o Unpack tuples
L12 o Loop Tuples
o Join tuples
o Tuple Methods
o Tuple Practice Exercise
W7. Sets L13 o Python Sets CLO2
o Access sets items
o Add set items
o Remove set items
o Loop set items
L14 o Join set items
o Set methods
o Set operations (union, intersections)
o Join sets
o Set practice Exercise
W8. Dictionaries L15 o Python Dictionary CLO4
o Keys and values in dictionary
o Access items
o Change items
o Remove items
L16 o Loop dictionaries
o Copy dictionaries
o Nested dictionaries
o Dictionary methods
o Practice questions
W9. Mid Term L17 − Mid Term Examination CLO1- CLO4
Exam
L18
W10. Python L19 o Python If-Else CLO4
Conditions o Indentation in If-Else
and o Elif
Statements o Else
L20 o Short hand If
o Short hand if-Else
o AND operator
o Or operator
o Not Operator
o Nested If
o Pass Statements
W11. Loops L21 CLO4
L22 o While loop
o Break statement
o Continue statement
o Else statement
o For Loop
o Looping through a string
o Break statement
o Continue statement
o Range function
o Else in for loop
o Nested loop
o Pass statement
W12. Functions L23 o Python Functions CLO4
o Creating a functions
o Calling a functions
o Arguments
o Parameters or arguments
L24
o Number of arguments
o Arbitrary Arguments, *args
o Default parameter values
o Passing a List as an argument
o Return values
o Pass statements
o Recursions
W13. File Handling L25 o Python file handling CLO3, CLO4
o Opening a file
o Open function
L26 o File mode
o Open file on the server
o Read only parts of the file
o Read lines
o Close files
o Write to an existing file
o Create new file
o Delete a file
o If in file handling
o Delete a folder
−
W14. NumPy L27 CLO4
L28 o Arrays in python
o Creating arrays
o Arrays indexing
o Arrays slicing
o Array shape
o Array reshapes
o Array iterating
o Array joins
o Array split
o Array search
o Array filter
o Array sorting
W15. Pandas L29 − Pandas series CLO4
− Data Frames
− Read CSV
− Read JSON
− Analyzing Data
− Cleaning Data
− Cleaning empty cells
− Removing duplicates
− Removing or cleaning wrong data and
L30 format
− Pandas correlations
− Pandas plotting
W16. Review of L31 − Review of course topics CLO1
course topics L32 − Project Presentation CLO2
&Project CLO3
Presentation CLO4
W17. Final Term − Final examination
Exam