Python Module
Python Module
Overview Python programs in this section performs arithmetic operations like Addition,
Multiplication and Division on the given set of input numbers.
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.
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.
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.
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
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.
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.
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.