Introduction
Chapter I
Basics of Python Programming -------------------------------> 1
1.1 - Features of Python
1.2 - Literal Constants, variables and identifiers, Data ----------> 2
Types
1.3 - Input Operation, Comments, Reserved Words --------- ----------> 3
Indentation, Operators and expressions in Python
1.4 - Operations on Strings, Type Conversion ----------> 4
1.5 - Placements Edition ----------> 5 to 7
Chapter 2
Decision control Statements
2.1 - Introduction to Decision Control Statements,
Selection/Conditional Branching Statements, if ----------> 8 to 9
Statement, ifelse Statement, Nested if, Statements, if-elif-
else Statement
2.2 - Basic Loop Structures/ Iterative Statements, Nested
Loops, The break Statement, The continue Statement, The ------> 9 to 11
pass Statement, The else Statement used with Loops
Placements Edition
Chapter 3
Functions and Modules
3.1 - Need for Functions, Function Definition Function Call ,
Function Parameters, Variable Scope and Lifetime, The ------> 12 to 17
return statement
3.2 - Defining Functions & Arguments ------> 17 to 18
3.3 - Lambda Functions or Anonymous Functions
3.4 - Recursive Functions
3.5 - Modules, Packages in Python, Standard Library
modules and Placements Edition ------> 18 to 21
, CONTENTS
Chapter 4
Data Structures
4.1 - Strings- Introduction, Concatenating, Appending, and ------> 22 to 24
Multiplying Strings, String Formatting Operator, Built-in string
methods and functions, Slice operation, Comparing & Iterating
String, String Module, Regular Expressions.
4.2 - List- Introduction, Nested List, Cloning Lists, Basic List
------> 24 to 25
operations, List methods, List Comprehensions, Looping in Lists,
Functional programming: filter (), map (), reduce () function.
4.3 - Tuples- Introduction, Basic Tuple operations, Tuple
assignment, Tuples for returning multiple values, Nested tuples,
Tuple methods: index, count, Important functions for Tuple, Tuple
packing and unpacking, Difference between Tuple and List ------> 25 to 28
4.4 Set - Introduction, creation of Set, Set functions, Copy (), pop
(), remove (), iscard (), clear (), Mathematical functions on set,
------> 28
Union (), intersection (), difference (), symmetric_difference (),
Membership operators
4.5 - Dictionaries- Introduction, Basic operations on Dictionaries,
Updation, Deletion, Clear(), Len(), Popitem(), Sorting items,
Looping over Dictionary, Nested Dictionaries, Dictionary ------> 29
comprehension, Built-in Dictionary functions and
Methods.Placements Edition
Chapter 5 ------> 30
File Handling onward
5.3 - Introduction, File Path, Types of Files
5.4 - Opening and Closing Files
5.5 - Reading and Writing Files
5.6 - File Positions
5.7 - Renaming and Deleting Files. Placements Edition
, UNIT – 1
BASICS OF PYTHON PROGRAMMING
What is Programming?
Programming is the art of communicating with a computer by giving it a
clear set of instructions to perform a specific task. These instructions are
written in the form of programs, which tell the computer what to do, how to
do it, and when to do it.
Programming involves:
Designing the solution
Writing the code
Testing the program
Fixing errors (debugging)
Through programming, we can create software such as mobile apps,
websites, games, banking systems, artificial intelligence programs, and
much more.
What is a Programming Language?
A programming language is a special language used to write instructions
that a computer can understand and execute. It acts as a bridge between
humans and machines, allowing developers to express ideas in a
structured format.
Some popular programming languages include:
Language Usage
Python Web development, data science, AI, ML
Java Android apps, enterprise systems
JavaScript Websites and web apps
C/C++ System programming, games
PHP Web server scripting
R Data analysis
SQL Database management
1