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

Python Syllabus 2023

periyar university syllabus

Uploaded by

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

Python Syllabus 2023

periyar university syllabus

Uploaded by

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

Subject Name: PYTHON PROGRAMMING Subject Code: 23UCSCC01

UNIT - I
Basics of Python Programming: History of Python-Features of Python-Literal-Constants-
Variables - Identifiers–Keywords-Built-in Data Types-Output Statements – Input Statements-
Comments – Indentation- Operators-Expressions-Type conversions. Python Arrays: Defining and
Processing Arrays – Array methods.

UNIT - II
Control Statements: Selection/Conditional Branching statements: if, if-else, nested if and if-
elif-else statements. Iterative Statements: while loop, for loop, else suite in loop and nested loops.
Jump Statements: break, continue and pass statements.

UNIT - III
Functions: Function Definition – Function Call – Variable Scope and its Lifetime-Return
Statement. Function Arguments: Required Arguments, Keyword Arguments, Default
Arguments and Variable Length Arguments- Recursion. Python Strings: String operations-
Immutable Strings - Built-in String Methods and Functions - String Comparison. Modules: import
statement- The Python module – dir() function – Modules and Namespace – Defining our own
modules.

UNIT - IV
Lists: Creating a list -Access values in List-Updating values in Lists-Nested lists -Basic list
operations-List Methods. Tuples: Creating, Accessing, Updating and Deleting Elements in a tuple –
Nested tuples– Difference between lists and tuples. Dictionaries: Creating, Accessing, Updating
and Deleting Elements in a Dictionary – Dictionary Functions and Methods - Difference between
Lists and Dictionaries.

UNIT - V
Python File Handling: Types of files in Python - Opening and Closing files-Reading and
Writing files: write() and writelines() methods- append() method – read() and readlines() methods –
with keyword – Splitting words – File methods - File Positions- Renaming and deleting files.
PYTHON PROGRAMMING LAB EXERCISES

1. Program using variables, constants, I/O statements in Python.


2. Program using Operators in Python.
3. Program using Conditional Statements.
4. Program using Loops.
5. Program using Jump Statements.
6. Program using Functions.
7. Program using Recursion.
8. Program using Arrays.
9. Program using Strings.
10. Program using Modules.
11. Program using Lists.
12. Program using Tuples.
13. Program using Dictionaries.
14. Program for File Handling.

You might also like