
UTTARANCHAL UNIVERSITY
(Established vide Uttaranchal University Act, 2012, Uttarakhand Act No. 11 of 2013)
Premnagar-248007, Dehradun, Uttarakhand, INDIA
Objectives of the Course
● This course introduces foundational programming skills with basic Python Syntax, how to use
code to solve problems. It dives deep into the Python ecosystem and learns popular modules,
libraries and tools for Python. Course also gets hands-on with objects, classes and methods in
Python, and utilizes variables, data types, control flow and loops, functions and data structures
and enables how to recognize and handle errors.
UNIT-I: Introduction to Python Programming Language:
Introduction to Python Language, Strengths and Weaknesses, IDLE, Dynamic Types, Naming
Conventions, String Values, String Operations, String Slices, String Operators, Numeric Data Types,
Conversions, Built in Functions.
UNIT-II: Data Collections and Language Component:
Introduction, Control Flow and Syntax, Indenting, the if Statement, Relational Operators, Logical,
Operators, True or False, Bit Wise Operators, the while Loop, break and continue, The for Loop, Lists,
Tuples, Sets, Dictionaries, Sorting Dictionaries, Copying Collections.
UNIT- III: Object and Classes:
Classes in Python, Principles of Object Orientation, Creating Classes, Instance Methods, File
Organization, Special Methods, Class, Variables, Inheritance, Polymorphism, Type Identification,
Custom Exception Classes.
UNIT-IV: Functions and Modules:
Introduction, Defining Your Own Functions, Parameters, Function, Documentation, Keyword and
Optional Parameters, Passing Collections to a Function, Variable Number of Arguments, Scope
Functions - "First Class Citizens" Passing, Functions to a Function, Mapping Functions in a Dictionary,
Lambda Modules, Standard Modules – sys Standard Modules , math Standard Modules, time, dir
Function.
UNIT-V: I/O and Error Handling in Python:
Introduction, Data Streams, Creating Your Own Data Streams, Access Modes, Writing Data to a File, Data
from a File, Additional File Methods, Using Pipes as Data Streams, Handling I/O Exceptions, Working
with Directories, Metadata Errors, Run Time Errors, Exception Model, Exception Hierarchy, Handling
Multiple Exceptions.
Course Outcomes (CO)
CO1 Prepare your computer system for Python programming.
CO2 Show understanding of Python syntax and how to control the flow of code.
CO3 Demonstrate knowledge of how to handle errors and exceptions.
CO4 Explain object-oriented programming and the major concepts associated with it.
CO5 Explain the importance of testing in Python, and when to apply a particular method.
Books for References:
● Python Crash Course, 2nd Edition: A Hands-On, Project-Based Introduction to Programming.
● Python Cookbook: Recipes for Mastering Python 3.
● Learn Python in 1 Day: Complete Python Guide with Examples.