, INDEX
Day Topic Page No
1 Introduction to Python: Environment setup, Basic I/O. 2
2 Conditional Branching control statements: If-Else, elif 4
3 Conditional looping control statements: while, do- 7
while, for.
4 Functions-Function Arguments-Default, Keyword, 10
Arbitrary
5 Functions-Recursion , Lambda function 13
6 Data Structures-List, Tuple, Stack , Queue 16
7 Data Structures -Dictionary, Set in details 20
8 Modules and Package-User program as modules and 27
Packages.
9 Files-Different types of files-File operation. 30
10 Errors and Exceptions Handling-Errors. Assert, Try, 33
except, Finally
11 Exceptions Try, Finally, User defined exception. 36
12 Object Oriented Programming-Class, Object, 36
Inheritance, and Polymorphism.
13 Reference Types- Iterator, Generator 45
14 Reference Types -Closure, Decorators. 48
15 Thread-Multithread. 51
16 Graphical User Interface-Textbox, Listbox, Option 53
Button, Menu, Canvas.
17 Database Connectivity-Mysql, Create table, Insert 57
table, View the table
18 Networking-Client and server program 61
19 Standard Library-Support the advanced library. 63
1|Page
,Day 1: Introduction to Python: Environment setup, Basic I/O.
1. Python Environment Setup:
Installing Python:
Before you begin, ensure Python is installed on your computer. You
can download the latest version of Python from the official website
(https://www.python.org/downloads/) and follow the installation
instructions for your operating system.
Python IDE (Integrated Development Environment):
To write and execute Python code, you need an Integrated
Development Environment (IDE). There are several popular options
available, such as:
• IDLE: Comes bundled with Python and provides a simple IDE to
write and run Python scripts.
• PyCharm: A full-featured IDE specifically designed for Python
development.
• Visual Studio Code (VSCode): A lightweight code editor with
excellent Python support through extensions.
Choose an IDE that suits your preferences and install it.
2. Basic Input/Output (I/O):
Printing to the Console:
In Python, you can use the print() function to display output on the
console:
2|Page
, Getting Input from the User:
To read input from the user, you can use the input() function. It reads
a line of text entered by the user and returns it as a string:
Note that input() only returns a string, so if you need a numeric
value, you'll have to convert it using int() or float():
Formatted Output:
You can use f-strings (formatted strings) or the format() method to
format the output:
Conclusion:
That's it for the introduction to Python's environment setup and
basic input/output. In your first lecture, you can walk through these
concepts with your students, demonstrate how to install Python and
set up an IDE, and show them practical examples of basic
input/output operations.
3|Page