DR. AJAY KUMAR PATHAK
ASSISTANT PROFESSOR
READ ALL THE NOTES CHAPTER WISE OF PYTHON PROGRAMMING FOR B. SC IT SEM 5 F.Y.U.G.P.
Copyright © by Dr. Ajay kumar pathak
B. Sc IT SEMESTER 5 NOTES BASED ON NEP
SUBJECT : MJ - 9 (Th): PYTHON PROGRAMMING
(To be selected by the students from)
NOTES OF UNIT 5 OF PYTHON PROGRAMMING
Objectives
Understand computer programming concept using python language. Explore basic data types, control structures and standard library functions. Explore the basic data structures: List, Tuple, Sets, Dictionaries available in python. Learning Object oriented concept of programming and its implementation in python.
Learning Outcomes:
At the end of the course,
students will be able to–
·
Solve the basic mathematical problem using
python programming.
·
Use basic data types control structures and
utility functions from standard library for faster programming.
·
Use the basic and user defined data
structures as per the need of problem. Design and implement the problem using
OOP concept of python.
Detailed
Syllabus
|
Unit 1 8 classes |
Introduction to Python: Introduction, The History of Python, Features
of python language, Getting Started with Python, Programming Style and
Documentation, Programming Errors. Elementary Programming: Introduction, Writing a Simple Program,
Reading Input from the Console, Identifiers, Variables, Assignment
Statements, and Expressions, Simultaneous Assignments, Named Constants, Numeric
Data Types and Operators, Evaluating Expressions and Operator Precedence,
Augmented Assignment Operators, Type Conversions and Rounding. |
|
Unit 2 7 classes |
Control Structures: Selections: Introduction, Boolean Types,
Values, and Expressions, if Statements, Two-Way if-else Statements, Nested if
and Multi-Way if-else if-else Statements, Logical Operators, Conditional
Expressions, Loops: Introduction, The while Loop, The for Loop, Nested Loops,
Keywords break and continue |
|
Unit 3 10 classes |
Functions: Introduction, Defining a Function, Calling a Function,
Functions with/without Return Values, Positional and Keyword Arguments,
Passing Arguments by Reference Values, Modularizing code, The Scope of
Variables, Default Arguments, Returning Multiple Values. Lists: Introduction, List Basics, Copying Lists, Passing Lists to
Functions, Returning a List from a Function, Searching Lists, Sorting,
Processing Two- Dimensional Lists, Passing Two-Dimensional Lists to Functions, Multidimensional Lists. |
|
Unit 4 10 classes |
Tuples, Sets, and Dictionaries: Introduction, Tuples: Creating
Tuples, Basic Tuple Operations, Indexing and Slicing in Tuples, Tuple methods,
Sets: Creating Sets, Manipulating and Accessing Sets, Subset and Superset, Set
Operations, Comparing the Performance of Sets and Lists, Dictionaries:
Creating a Dictionary, Adding, Modifying, and Retrieving Values, Deleting Items, Looping
Items, The Dictionary Methods. |
|
Unit 5 10 classes |
Objects and Classes: Introduction, Defining Classes for Objects,
Immutable Objects vs. Mutable Objects, Hiding Data Fields, Class
Abstraction and Encapsulation. Inheritance and Polymorphism: Introduction, Super classes and
Subclasses, Overriding Methods, The object Class, Polymorphism and Dynamic
Binding, The is instance function. Class Relationships: Association,
Aggregation, composition. Files and Exception Handling: Introduction, text input and
output: opening a file, Writing Data, Reading All Data from a File, Exception Handling. |






