Introduction To Python Programming
Introduction To Python Programming
UNIT-I
Introduction 10 Hours
Introduction to Computer generations and types, CPU, Primary Memory, Secondary Memory, Ports
and Connections.
Problem solving, Program Development steps, Introduction to Algorithms and Flowcharts.
Introduction to python, basic syntax, interactive shell, editing, saving, and running a script.
The concept of data types; variables, assignments; immutable variables; numerical types; arithmetic
operators and expressions; comments in the program; understanding error messages;
Conditions, Boolean logic, logical operators; ranges; Control statements: if-else, loops (for, while);
short-circuit evaluation
UNIT-II
Data structure and function 10 Hours
LISTS, TUPLES, AND DICTIONARIES; basic list operators, replacing, inserting, removing an
element; searching and sorting lists; dictionary literals, adding and removing keys, accessing and
replacing values; traversing dictionaries.
FUNCTIONS
Design with functions: hiding redundancy, complexity; arguments and return values; formal vs actual
arguments, named arguments. Recursive functions, Lambda functions.
Introduction to Object oriented concepts – Class, object and member function
UNIT-III
Strings and text files 06 Hours
STRING MANIPULATIONS: subscript operator, indexing, slicing a string; strings and number
system: converting strings to numbers and vice versa, Binary, octal, hexadecimal numbers
Manipulating files and directories, text files: reading/writing text and numbers from/to a file; creating
and reading a formatted file (csv or tab-separated).
TEXTBOOKS:
1. Kenneth A. Lambert, “The Fundamentals of Python: First Programs”, Cengage Learning,
2011.
2. Magnus Lie Hetland, “Beginning Python from Novice to Professional”, Second Edition,
Apress, 2009.
3. Mark Summerfield, “Programming in Python 3 - A Complete Introduction to the Python
Language”, Second Edition, Addison-Wesley, 2009.
4. Y. Daniel Liang, “Introduction to Programming Using Python”, Pearson, 2013.