0% found this document useful (0 votes)
9 views

python

The document outlines a comprehensive curriculum for learning Python programming, covering its history, basic syntax, data types, and operators. It includes detailed sections on control flow statements, string manipulation, file handling, and data structures such as lists, tuples, sets, and dictionaries. Additionally, it addresses functions, modules, and regular expressions, providing illustrative examples throughout to enhance understanding.

Uploaded by

mamatha.pragada
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

python

The document outlines a comprehensive curriculum for learning Python programming, covering its history, basic syntax, data types, and operators. It includes detailed sections on control flow statements, string manipulation, file handling, and data structures such as lists, tuples, sets, and dictionaries. Additionally, it addresses functions, modules, and regular expressions, providing illustrative examples throughout to enhance understanding.

Uploaded by

mamatha.pragada
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

UNIT – I:

Introduction: History of Python, Need of Python Programming, Applications Basics


of Python Programming Using the REPL(Shell), Running Python Scripts, Variables,
Assignment, Keywords, Input-Output, Indentation. Overview on data types:
Numbers, Strings, Lists, Set, Tuple and Dictionaries.

Operators in Python: Arithmetic Operators, Comparison (Relational) Operators,


Assignment Operators, Logical Operators, Bitwise Operators, Shift Operators, Ternary
operator, Membership Operators, Identity Operators, Expressions and order of
evaluations. Illustrative examples on all the above operators.

UNIT – II:

Input and Output statements: input () function, reading multiple values from the
keyboard in a single line, print () function, ‘sep’ and ‘end’ attributes, Printing formatted
string, replacement operator ({}). Illustrative examples on all the above topics.

Control flow statements: Conditional statements – if, if-else and if-elif-else


statements. Iterative statements – for, while. Transfer statements – break, continue
and pass. Illustrative examples on all the above topics.

UNIT – III:

Strings: Introduction to strings, Defining and Accessing strings, Operations on


string - String slicing, Mathematical Operators for String, Membership operators on
string, Removing spaces from the string, Finding Substrings, Counting substring in
the given String, Replacing a string with another string, Splitting of Strings, Joining
of Strings, Changing case of a String, Checking starting and ending part of the string,
checking type of characters present in a string. Illustrative examples on all the above
topics.

Files: Opening files, Text files and lines, Reading files, searching through a file,
Using try, except and open, Writing files, debugging.

UNIT – IV:

Lists: Creation of list objects, Accessing and traversing the elements of list.
Important functions of list – len(), count(), index(), append(), insert(), extend(),
remove(), pop(), reverse() and sort(). Basic Operations on list: Aliasing and Cloning
of List objects, Mathematical Operators for list objects, Comparing list objects,
Membership operators on list, Nested Lists, List Comprehensions. Illustrative
examples on all the above topics.

Tuples: Creation of Tuple objects, Accessing elements of tuple, Mathematical operators


for tuple, Important functions of Tuple – len(),count(),index(), sorted(), min(), max(),
cmp().Tuple Packing and Unpacking. Illustrative examples on all the above topics.

UNIT – V:

Sets: Creation of set objects, Accessing the elements of set. Important functions of
set – add(), update(), copy(), pop(),remove(),discard(),clear(). Basic Operations on set -
Mathematical Operators for set objects, Membership operators on list, Set
Comprehensions. Illustrative examples on all the above topics.

Dictionaries: Creation of Dictionary objects, Accessing elements of dictionary,


Basic operations on Dictionary - Updating the Dictionary, Deleting the elements
from Dictionary. Important functions of Dictionary – dict(), len(), clear(), get(),
pop(), popitem(), keys(), values(), items(), copy(), setdefault(). Illustrative examples
on all the above topics.

UNIT – VI:

Functions - Defining Functions, Calling Functions, Types of Arguments - Keyword


Arguments, Default Arguments, Variable-length arguments, Anonymous Functions,
Fruitful functions (Function Returning Values), Scope of the Variables in a Function
- Global and Local Variables. Recursive functions, Illustrative examples on all the
above topics.

Modules: Creating modules, import statement, from Import statement.

Regular Expressions: Character matching in regular expressions, Extracting data


using regular expressions, combining searching and extracting, Escape character.

You might also like