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

Python Module

The document outlines a course agenda for Python programming, divided into eight modules covering fundamentals, control flow, functions, data structures, and file handling. Each module includes learning objectives and practical lab exercises to reinforce the concepts taught. The course aims to provide a comprehensive understanding of Python programming through hands-on experience with various programming tasks.
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)
0 views8 pages

Python Module

The document outlines a course agenda for Python programming, divided into eight modules covering fundamentals, control flow, functions, data structures, and file handling. Each module includes learning objectives and practical lab exercises to reinforce the concepts taught. The course aims to provide a comprehensive understanding of Python programming through hands-on experience with various programming tasks.
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
You are on page 1/ 8

COURSE AGENDA: MODULE-1

Lecture I - Fundamentals of Python Programming Language

Overview Python programs in this section performs arithmetic operations like Addition,
Multiplication and Division on the given set of input numbers.

Learning  What is Python?


Objectives  What’s a variable?
 Data Variables and Operators.

Lab Exercise  Python Program to exchange the values of two numbers without using a
temporary variable.
 Python Program to take the temperature in Celsius and convert it to
Fahrenheit.
 Python Program to read two numbers and print their quotient and
remainder.
 Python Program to find the area of a triangle given all three sides.
 Python Program to read height in centimeters and then convert the
height to feet and inches
 Python Program to compute simple interest given all the required values.
Lecture II – If-Else & Basic Loop
Duration: 3 Hrs.
Overview Python programs in this section allows you to make a decision, based upon the
result of a condition. & build logics to solve various problems and basic concept of
loop.

Learning Objectives  Conditional statement


 If-else
 Basic loop
 Ranges

Lab Exercise  Python Program to check whether a given year is a leap year or not.
 Python Program to take in the marks of 5 subjects and display the grade.
 Python Program to check if a number is an Armstrong number.
 Python Program to find the sum of digits in a number.
 Python Program to print odd numbers within a given range.
 Python Program to check whether a given number is a palindrome.
 Python Program to print all numbers in a range divisible by a given number.
 Python Program to read a number n and print an inverted star pattern of
the desired size.
 Python Program to find the sum of first N Natural Numbers.
Lecture III – Loop and Function Definition
Duration: 3 Hrs.
Overview Python programs in this section clears the concept of loop and user defined
function in python.

Learning  Understand why loops are useful.


Objectives  Recall the need of indentation
 Implement mix of loops and control flow to extract information from a
data structure.

Lab Exercise  Python Program to read a number n and print and compute the series
“1+2+…+n=”.
 Python Program to find the sum of series: 1 + 1/2 + 1/3 + ….. + 1/N.
 Python Program to find the sum of series: 1 + x^2/2 + x^3/3 + … x^n/n.
 Python Program to find the sum of series: 1 + 1/2 + 1/3 + ….. + 1/N.
 Python program to find whether a number is a power of two.
Lecture IV – List and Tuple
Duration: 3 Hrs.
Overview Python programs in this section provides the concept of collection of elements.

Learning  What is List?


Objectives  What is Tuple?
 Difference between List and Tuple.

Lab Exercise  Python Program to find the second largest number in a list.
 Python Program to put the even and odd elements in a list into two
different lists.
 Python Program to merge two lists and sort it.
 Python Program to find the second largest number in a list using bubble
sort.
 Python Program to find the intersection of two lists.
 Python Program to sort a list of tuples in increasing order by the last
element in each tuple.
 Python Program to remove the duplicate items from a list.
Lecture V – Strings
Duration: 3 Hrs.
Overview Collection of character is known as string. Python programs in this section
performs operations on string

Learning  What is String?


Objectives  Different operations on string

Lab Exercise  Python Program to replace all occurrences of ‘a’ with ‘$’ in a string.
 Python Program to detect if two strings are anagrams.
 Python Program to count the number of vowels in a string.
 Python Program to calculate the length of a string without using
library functions.
 Python Program to check if a string is a palindrome or not.
 Python Program to check if a substring is present in a given string.
Lecture VI – Dictionary and Set
Duration: 3 Hrs.
Overview Python programs in this section performs different operation on dictionary and
Set.

Learning  Identify Dictionary and Sets


Objectives  Recognize difference between them

Lab Exercise  Python Program to add a key-value pair to a dictionary.


 Python Program to concatenate two dictionaries into one dictionary.
 Python Program to check if a given key exists in a dictionary or not.
 Python Program to remove the given key from a dictionary.
 Python Program to count the frequency of words appearing in a string
using a dictionary.
 Python Program to create a dictionary with key as first character and
value as words starting with that character.
 Python Program to count the number of vowels present in a string using
sets
 Python Program to check common letters in the two input strings.
 Python Program to display which letters are present in both the strings.
Lecture VII – Recursion and File Handling
Duration: 3 Hrs.
Overview Python programs in this section performs recursive method to perform operation
and file handling tasks.

Learning Objectives  Implementing recursive function


 Understand different properties for different file formats.

Lab Exercise  Python Program to find the fibonacci series using recursion.
 Python Program to find the factorial of a number using recursion.
 Python Program to find the GCD of two numbers using recursion.
 Python Program to reverse a string using recursion.
 Python Program to read the contents of a file.
 Python Program to count the number of words in a text file.
 Python Program to copy the contents of one file into another.
 Python Program to append the contents of one file to another file.
 Python Program to read a file and capitalize the first letter of every word in
the file.
Lecture VIII – Data Structure using Python
Duration: 3 Hrs.
Overview Python programs in this section performs different data structure program.

Learning  Implement a data structure.


Objectives  Distinguish different approaches.

Lab Exercise  Python program to search for an element in a linked list using recursion.
 Python program to implement a stack.
 Python program to find the Nth node in the in-order traversal of a binary
tree.

You might also like