0% found this document useful (0 votes)
6 views3 pages

Python Programming Fundamentals Guide

The document outlines a Python programming curriculum divided into five units, covering topics such as Python basics, iteration and data structures, functions and exception handling, dictionaries and file handling, and object-oriented programming. Each unit includes practical exercises to reinforce learning through hands-on programming tasks. The curriculum emphasizes algorithm design, data manipulation, and the use of Python libraries for various applications.

Uploaded by

pragadarsh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

Python Programming Fundamentals Guide

The document outlines a Python programming curriculum divided into five units, covering topics such as Python basics, iteration and data structures, functions and exception handling, dictionaries and file handling, and object-oriented programming. Each unit includes practical exercises to reinforce learning through hands-on programming tasks. The curriculum emphasizes algorithm design, data manipulation, and the use of Python libraries for various applications.

Uploaded by

pragadarsh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1

UNIT I: INTRODUCTION TO PYTHON


PROGRAMMING (6L + 6P)

Introduction to Python – Features of Python – Installation and working with IDEs –


Python syntax and indentation – Variables and data types – Operators and expressions
– Input and output functions – Conditional control structures: if, if-else, if-elif-
else – Algorithm design using flowcharts and pseudocode.

PRACTICALS

Write a Python program to display personal details using input/output


functions.

Develop a program to perform arithmetic operations with different data types.

Create programs using conditional statements for simple decision-making


problems.

Draw flowcharts and write pseudocode for real-life problems and implement
them in Python.

UNIT II: ITERATION AND DATA STRUCTURES (6L +


6P)

Loops: for, while, nested loops – Loop control statements: break, continue, pass
– Lists: indexing, slicing, and functions – Tuples and sets – String operations and
formatting – Searching and sorting methods.

PRACTICALS

Write programs to demonstrate for, while, and nested loops.

Implement linear search and bubble sort using lists.

Develop programs to perform operations on strings (e.g., palindrome check,


substring search).

Create and manipulate tuples and sets using relevant operations.

UNIT III: FUNCTIONS AND EXCEPTION HANDLING


(6L + 6P)

Function definition, parameters, return values – Default and keyword arguments –


Recursion – Scope of variables – Built-in functions – Modules and importing –
Exception handling with try, except, finally.

PRACTICALS

1
2

Write programs using user-defined functions with parameters and return


values.

Develop a program to calculate factorial using recursion.

Implement exception handling for division by zero and invalid input.

Use Python’s math module to perform scientific calculations.

UNIT IV: DICTIONARIES, FILE HANDLING AND DATA


PROCESSING (6L + 6P)

Dictionaries: creation, operations, methods – File handling: read, write, append –


Working with text and CSV files – Structured data processing.

PRACTICALS

Write programs to create and manipulate dictionaries.

Develop a program to read and write data from a text file.

Implement a student record system using files.

Read and process CSV files using Python’s built-in functions.

UNIT V: OBJECT-ORIENTED PROGRAMMING AND


LIBRARIES (6L + 6P)

Classes and objects – Constructors – Instance and class variables – Inheritance –


Method overriding – Encapsulation – Introduction to standard libraries: math,
datetime, pandas, matplotlib.

PRACTICALS

1.

Create a class for a bank account with methods for deposit and withdrawal.

Implement single and multilevel inheritance with appropriate examples.

2.
3.

1
3

Use datetime and math libraries to build a calendar-based calculator.

4.
5.

Load and plot simple datasets using pandas and matplotlib.

6.

You might also like