0% found this document useful (0 votes)
0 views5 pages

Python Programming

The document outlines the syllabus for a Python Programming course for II Year B. Tech. students starting from the 2024-25 academic year. It includes course outcomes, a list of experiments, and detailed modules covering various programming concepts such as data types, control structures, functions, and libraries, along with practical assignments. Additionally, it presents case study projects for students to choose from, focusing on real-world applications of Python programming.

Uploaded by

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

Python Programming

The document outlines the syllabus for a Python Programming course for II Year B. Tech. students starting from the 2024-25 academic year. It includes course outcomes, a list of experiments, and detailed modules covering various programming concepts such as data types, control structures, functions, and libraries, along with practical assignments. Additionally, it presents case study projects for students to choose from, focusing on real-world applications of Python programming.

Uploaded by

orr61115
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

R24- Syllabus of ECE-GVPW(A) w.e.f.

2024-25

PYTHON PROGRAMMING
II Year B. Tech. I semester
[Skill Course: ECE]

L T P C
Course Code: 24EC11SC01
1 0 2 2

Course Outcomes: At the end of the Course, the student shall be able to
CO1: Understand core programming basics and various Operators of Python.
CO2: Implement programs using conditional statements and loops and strings.
CO3: Develop functions and strings to perform simple tasks.
CO4: Make use of various data structures like lists, tuples, sets and dictionaries.
CO5: Implement Python programs with files, Classes and objects.

List of Experiments

Introduction to Python:

Identifiers and Keywords, Strings, Comparing Strings, Slicing and Striding Strings, String Operators
and Methods, Tuples, Lists, Sets, dictionaries, Iterating and copying collections

Python Control Structures and Functions:

Conditional Branching, Looping, Exception Handling, Custom Functions

Python Library Modules: random, math, os, shutil, sys, creating a custom module

Module-1: Basics of Python

1. Write a program to display the statements.


2. Demonstrate about fundamental Data types in Python Programming. (i.e., int, float, complex,
bool and string types)
3. Write a Python program to demonstrate various type conversion functions.

Module-2: Operators in Python

1. Demonstrate the following Operators in Python with suitable examples.


i) Arithmetic Operators ii) Relational Operators

iii) Assignment Operators iv) Logical Operators

Page 19 of 43
R24- Syllabus of ECE-GVPW(A) w.e.f.2024-25

v) Bit wise Operators vi) Ternary Operator

vii) Membership Operators viii) Identity Operators

Module-3: Conditional Branching & Looping/Iterative Statements

1. Write a program to check whether the given number is even or odd

2. Write a program to read marks of a student and display the corresponding grade

3. Write a program to find the largest element among the given numbers (multi-way if-elif-else
statements.)

4. Implement the following programs using while loop and for loop

i. Display all prime numbers up to n. ii. Print the nth multiplication table.

5. Demonstrate the following control transfer statements in Python with suitable examples.

i. break ii. continue iii. Pass

Module-4: Strings

1. Write a program to manage and analyse customer feedback using string operations include:
i. Create feedback with name, email, comment ii. Collecting feedback.

iii. Normalizing feedback (e.g., removing extra spaces, converting to lowercase).

iv. Extracting key in formation (e.g., names, email addresses, and comments).

v. Searching for keywords. vi. Replacing certain words.

Module-5: Lists:

1. Write a program to create a list and perform the following operations:

i. + ii. * iii. slicing iv. del

2. Inventory Management: You have a list of items in your warehouse along with their
quantities. Write a program to find out which items are low in stock (quantity less than 10).
(use only comprehensions)

3. Write a program to calculate the length of each element in a list using map function in python.

Page 20 of 43
R24- Syllabus of ECE-GVPW(A) w.e.f.2024-25

Module-6: Tuples

1. Write a program to return the top n’s most frequently occurring chars and their respective
counts. e.g. string=aaaaaabbbbcccc, n=2 should return [(a 6) (b 4)].

2. Write a program to create n iterables of varied sizes and group the values using zip function
in python.

3. Student Information: Write a program to create a list of tuples where each tuple contains the
student ID, name, and grade and find the student with the highest grade.

Module-7: Sets & Dictionaries

1. Write a program to create two sets and perform the following operations:

i. Union ii. Intersection iii. Difference iv. Asymmetric Difference

2. Write a program to implement a shopping cart where you can add items with their prices and
quantities, and then calculate the total cost.

3. Banking System: Write a program to create dictionary with customer name and balance and
retrieve the balance for a given customer, deposit a specified amount into a customer's
account, withdraw a specified amount from a customer's account if sufficient balance is
available, transfer a specified amount from one customer's account to another's and remove a
customer from the bank's system.

Module-8: Functions

1. Write a function to find the multiplication of two numbers and demonstrate the usage of
parameters and arguments of a function.

2. Write a program to define a function using default arguments.

3. Demonstrate lambda functions in Python with suitable example programs.

4. Write a Python program that asks the user to input two numbers and divides the first number
by the second. Your program should handle the following exceptions:

• ValueError: if the user enters something that is not a number.


• ZeroDivisionError: if the second number entered is zero.
• Use a finally block to print "Program execution completed."

Page 21 of 43
R24- Syllabus of ECE-GVPW(A) w.e.f.2024-25

Module-9: Python Library

1. Write a Python program to generate and print a random number between 1 and 100.
2. Write a Python program to calculate and print the square root of a number, for example, 64.
3. Write a Python program to display the sine and cosine values of 45 degrees, and also print the
value of π using the math module.
4. Write a Python program to list all the files and folders in the current working directory.
5. Write a Python program to create a new folder called test_folder. If it already exists, display a
message saying the folder already exists.
6. Write a Python program to copy a file named source.txt to a new file called destination.txt.
7. Write a Python program to move a file named file_to_move.txt into a folder named new_folder.
8. Write a Python program to print the current Python version and the system path list using the
sys module.
Module-10: Classes and objects

1. Create a class to represent menu items in a restaurant with attributes like name, price, and
category. Implement methods to display menu details and calculate the total cost of a selected
list of items.
2. Write a program to read 3 subject marks and display pass or failed using class and object.
Case Study:

Note: A report has to be submitted by every student at the end of the semester by choosing any one of the
following case studies:

1. Student Management System

Build a program to add, view, update, and delete student records, calculate grades, search by name/ID,
handle input errors, and save/load data using files.

2. Inventory and Billing System

Create an inventory manager to add products, check low stock, generate bills, calculate totals, and store
bills using classes and file handling.

3. Feedback Analyzer

Design a tool to collect and clean customer feedback, search and replace keywords, count word/character
frequency, and manage data through files.

Page 22 of 43
R24- Syllabus of ECE-GVPW(A) w.e.f.2024-25

4. Simple Banking System

Develop an application to create and manage accounts, handle deposits, withdrawals, transfers, and balance
checks with proper validation and file support.

5. Daily Expense Tracker

A basic program where users can input daily expenses, view summaries by category, calculate totals, and
store data in files for future use.

6. Contact Book

Create a contact manager to add, view, search, and delete contacts using names, phone numbers, and
emails, with data stored in dictionaries and files.

7. To-Do List App

A simple application to manage tasks—add, mark as done, delete, and view tasks using lists and string
operations, with optional save/load functionality.

8. Simple Calculator

Build a basic calculator that performs arithmetic operations, handles invalid inputs using exception
handling, and provides a clean menu-driven interface.

9. Grade Calculator

Create a program that takes marks for multiple subjects, calculates total and average, determines grade
using conditions, and supports multiple student entries.

10. Simple Password Generator

An application that generates strong random passwords based on user input for length and character types
(letters, numbers, symbols), using built-in modules and string handling.

Reference Books:

1. Learning Python, 5th Edition, Mark Lutz, Orielly Publications

Web References:

1. https://archive.nptel.ac.in/courses/106/106/106106212/

Page 23 of 43

You might also like