Course Objectives:
● The Objectives of Python Programming are
● To learn about Python programming language syntax, semantics, and the
runtime environment
● To be familiarized with universal computer programming concepts like data
types, containers
● To be familiarized with general computer programming concepts like
conditional execution, loops & functions
● To be familiarized with general coding techniques and object-oriented
programming
Course Outcomes:
● Develop essential programming skills in computer programming concepts like
data types, containers
● Apply the basics of programming in the Python language
● Solve coding tasks related conditional execution, loops
● Solve coding tasks related to the fundamental notions and techniques used in
objectoriented programming
UNIT-1
Introduction: Introduction to Python, Program Development Cycle, Input, Processing,
and Output, Displaying Output with the Print Function, Comments, Variables, Reading
Input from the Keyboard, Performing Calculations, Operators. Type conversions,
[Link], and Expression: Strings Assignment, and Comment, Numeric Data
Types and Character Sets, Using functions and [Link] Structures and Boolean
Logic: if, if-else, if-elif-else Statements, Nested Decision Structures, Comparing Strings,
Logical Operators, Boolean Variables. Repetition Structures: Introduction, while loop,
for loop,, Nested Loops.
UNIT-2
List and Dictionaries: Lists, Defining Simple Functions, Dictionaries Design with
Function: Functions as Abstraction Mechanisms, Design with Recursive Functions
Modules: Modules, Standard Modules, Packages.
UNIT-2
Strings and Text Files: Accessing Character and Substring in Strings, Data Encryption,
Strings and Number Systems, String Methods Text [Link] Study Gathering
Information from a File System, Managing a Program’s Namespace, Higher Order
Function.
File Operations: Reading config files in python, Writing log files in python,
Understanding read functions, read(), readline() and readlines(), Understanding write
functions, write() and writelines(), Manipulating file pointer using seek, Programming
using file operations
UNIT-4
Object Oriented Programming: Concept of class, object and instances, Constructor,
class attributes and destructors, Real time use of class in live projects, Inheritance ,
overlapping and overloading operators, Adding and retrieving dynamic attributes of
classes, Programming using Oops support Design with Classes: Objects and Classes,
Data modeling Examples, Case Study An ATM, Structuring Classes with Inheritance and
Polymorphism
UNIT-5
Errors and Exceptions: Syntax Errors, Exceptions, Handling Exceptions, Raising
Exceptions, User-defined Exceptions, Defining Clean-up Actions, Redefined Clean-up
Actions.
Graphical User Interfaces: The Behavior of Terminal Based Programs and GUI -Based,
Programs, Coding Simple GUI-Based Programs, Other Useful GUI Resources.
Programming: Introduction to Programming Concepts with Scratch.