PYTHON PROGRAMMING
COURSE OBJECTIVE
● To identify and use various in-built functions, operators and statements supported by python.
● To learn how to use lists, tuples, and dictionaries in Python programs and to learn how to
identify Python object types.
● To learn how to write or implement control and decision statements in python.
● To implement the real-use cases of the functions in python.
● To learn how to build and package python module for reusability and understand the concepts
of file handling.
● To identify the patterns in the given data and learn how to import in-built library and use the
matplotlib for the graphical representation.
● To learn the implementation of Machine Learning and learn how to create a model in python.
UNIT NO. OF
CONTENTS
NUMBER HOURS
Python Introduction and Setup
Definition with Real Use Cases, History of Python, How
Python is installed, Python IDE, Execution of the basic
UNIT-I program of the python, Character set, Token, core Data 5
types, Variables, input(), eval() & print() function,
Formatting String, Operators and Expressions., Type
Conversion
Conditional & Control Statements
Decision Making statements (if-else statement, its working
and execution), Nested-if statement and Elif statement in
Python, Conditional Expressions Evaluation & Float
UNIT-II 6
Representation, Boolean type, Boolean operators, String
Operators, While Loop, For Loop, Nested loop, Break,
Continue and Pass statements, range() Function
Data Structures, Functions & OOPS
Syntax and Basics of Functions, Use of functions,
Parameters and Arguments, local & global Scope of variable,
return statement, recursive function, Str class, inbuilt
functions of string, traversal of string, string operator &
UNIT-III 6
operations, Creating a list, Tuple, Dictionaries & sets, In-
built functions of list, tuple, set & dictionaries, list operators,
replacing values in dictionaries, retrieving value from
dictionaries, Concepts of OOPS (Class, object, Abstraction,
Encapsulation, Inheritance, Polymorphism), Attributes and
Class Keyword, Class Object Attributes and Methods
File Handling & Data Analysis
Need of File Handling, Different modes of file handling,
UNIT-IV Read/Write text and numbers to/from a file, Directories on a 7
disk, Introduction of Pandas, Data frames, Series, Data
analysis using Pandas.
Data Handling & Use Cases
Regular Expression Pattern Matching, Parsing Data,
Introduction to Regression, Use Cases of Regression, Types
UNIT-V 8
of Regression, Exploratory Data Analysis, Correlation
Matrix, Visualization using Matplotlib and Implementation
of Linear Regression.
Building Projects Using Python & Machine Learning
Fundamentals
Introduction of Machine Learning, Algorithms Random
UNIT-VI Forest, Support Vector Machine, Random Forest, Confusion 8
Matrix, Training and Testing Model Build your own model
in python, Comparison between the Random Forest and
decision tree.
COURSE LEARNING OUTCOMES (CLO)
After completion of course, students would be able to:
● Understand the vision of Python from a global context.
● Understand why Python is a useful scripting language for developers.
● Understand the content of how to write loops, decision statements, write functions and pass
arguments in Python.
● To learn how to use lists, tuples, and dictionaries in Python programs and to learn how to identify
Python object types.
● To learn how to read and write files in Python. Will learn how to create Pandas DataFrames,
calculate aggregates, and merge multiple tables.
● Will understand how to import in-built libraries and use matplotlib for graph representation
and how regular pattern matching will be done.
● Will understand the concepts of algorithms of Machine learning and learn how to train the
models.
TEXT/REFERENCE BOOKS
● Ashok Namdev Kamthane, Programming and Problem Solving with Python, McGraw Hill
Education Publication, ISBN(13):978-93-87067-57-8.
● Guido van Rossum and Fred L. Drake Jr, ―An Introduction to Python – Revised and updated
for Python 3.2, Network Theory Ltd., 2011.
● Allen B. Downey, Think Python, O’Reilly Media
● Kenneth A. Lambert, The Fundamentals of Python: First Programs, 2011, Cengage
Learning
Further suggested Readings
● John V Guttag, ―Introduction to Computation and Programming Using Python‘‘,
Revised and expanded Edition, MITPress , 2013
● Python Cookbook , David Beazley & Brian K. Jones (O’Reilly, 3rd edition, 2013)