Python Assignments
UNIT - 2
Write a python program input string and prints its characters in different lines two characters per line
Write a python to print the number of occurrences of a sub string into a line
Write a python program to check the given string is palindrome or not
Write a python program that inputs a string and then prints it equal to number of times its length
Write a Python function that takes a string as parameter and returns a string with every successive repetitive character replaced by and
Write a python program to form a word by joining first character of each word
Write a python program to reverse order of its words in given sentence
Write a python program to find the longest word present in the sentence along with its length
Write a python program to find the frequency of vowels in each word
Write a python program to input a word and display the pattern as shown below
Strings in Python
Write a python program input string and prints its characters in different lines two characters per line
Write a python to print the number of occurrences of a sub string into a line
Write a python program to check the given string is palindrome or not
Write a python program that inputs a string and then prints it equal to number of times its length
Write a Python function that takes a string as parameter and returns a string with every successive repetitive character replaced by and
Write a python program to form a word by joining first character of each word
Write a python program to reverse order of its words in given sentence
Write a python program to find the longest word present in the sentence along with its length
Write a python program to find the frequency of vowels in each word
Write a python program to input a word and display the pattern as shown below
UNIT - 3
Write a python program to input a welcome message and print it
Write a python program to print number of seconds in year
Write a Python program to calculate GST Goods and Service Tax
Write a python program to find the ASCII Value of entered character
Write a python program that display a joke but display the punch line only when the user presses enter key
Write a python program to generate the following output 5 10 9
Write a python program to print 5@10@9
Simple Python programs
Write a python program to input a welcome message and print it
Write a python program to print number of seconds in year
Write a Python program to calculate GST Goods and Service Tax
Write a python program to find the ASCII Value of entered character
Write a python program that display a joke but display the punch line only when the user presses enter key
Write a python program to generate the following output 5 10 9
Write a python program to print 5@10@9
UNIT - 4
Write a python program to find a side of a right angled triangle whose two sides and an angle is given
Write a python program to obtain the marks in computer of some student and find mean median and mode
Write a Write a Python code to calculate and display the value of Sine 45° and Cosine 30°
Write a python program to accept the Base and Perpendicular and find the Hypotenuse
Write a python program to accept three side of triangle and find its area by using Herons Formula
Write a python program to accept side of Equilateral Triangle and find its area
Write a Python program to check whether dart hit inside board or outside
Math functions
Write a python program to find a side of a right angled triangle whose two sides and an angle is given
Write a python program to obtain the marks in computer of some student and find mean median and mode
Write a Write a Python code to calculate and display the value of Sine 45° and Cosine 30°
Write a python program to accept the Base and Perpendicular and find the Hypotenuse
Write a python program to accept three side of triangle and find its area by using Herons Formula
Write a python program to accept side of Equilateral Triangle and find its area
Write a Python program to check whether dart hit inside board or outside
UNIT - 5
Write a python Program to obtain temperature in Celsius and convert it into Fahrenheit
Write a python program to print the area of circle when radius of the circle is given by user
Write a python program to print the volume of a cylinder when radius and height of the cylinder is given by user
Write a python program that asks your height in centimeters and converts it into foot and inches
Write a python program accept three side of triangle and find area of a triangle
Write a python program to input principle amount,rate time and calculate simple interes
Write a python program to read a number in n and prints n2 n3 n4
Write a python program which take value of x y z from the user and calculate the equation
Write a python program to take the temperatures of all 7 days of the week and displays the average temperature of that week
Write a python program to obtain three numbers and print their sum
Write a Python program to obtain length and breath of a rectangle and calculate its area
Write a python program to calculate body mass index of a person
Write a python program to input a number and print its cube
Write a python program to input a single digit and print a 3 digit number
Write a python program to calculate the compound interest
Write a python program to find sale price of an item with given price and discount
Write a Python Program to Calculate the Area of a Triangle
Write a python program for addition of two times in hour and minute format
Write a python program for addition of two times in hour minute and second format
Write a python program to print quotient
Write a python program to print quotient
Write a Python program to calculate simple interest
Write a Python program to calculate area and perimeter of a parallelogram
Write a Python program demonstrating working with power operator
Write a Python program of division operator
Write a Python program of modulus
Write a Python program convert dollars in Rupee
Write a Python program to convert kilometers to miles
Write a Python program to convert the distance in feet to inches yards and miles
Write a Python program to display menu to calculate area of square or rectangle
Write a python program to obtain x y z from user and calculate expression
Write a python program that reads a number of seconds and prints it in form mins and seconds
Write a python program to take a 2 digit number and then print the reversed number
Write a python program to take a 3 digit number and then print the reversed number
Write a python program to take two inputs for day month and then calculate which day of the year
Write a python program that asks a user for a number of years and then prints out the number of days hours minutes and seconds
Write a python program that inputs an age and print age after 10 years
Write a python program to calculate the radius of a sphere whose area is given
Write a python program to calculate the area of an equilateral triangle
Write a python program to input the radius of a sphere and calculate its volume
Write a python program to calculate amount payable after simple interest
Write a python program to input the time in second and convert into hours minute and seconds
Arithmetic Operation in Python
Write a python Program to obtain temperature in Celsius and convert it into Fahrenheit
Write a python program to print the area of circle when radius of the circle is given by user
Write a python program to print the volume of a cylinder when radius and height of the cylinder is given by user
Write a python program that asks your height in centimeters and converts it into foot and inches
Write a python program accept three side of triangle and find area of a triangle
Write a python program to input principle amount,rate time and calculate simple interes
Write a python program to read a number in n and prints n2 n3 n4
Write a python program which take value of x y z from the user and calculate the equation
Write a python program to take the temperatures of all 7 days of the week and displays the average temperature of that week
Write a python program to obtain three numbers and print their sum
Write a Python program to obtain length and breath of a rectangle and calculate its area
Write a python program to calculate body mass index of a person
Write a python program to input a number and print its cube
Write a python program to input a single digit and print a 3 digit number
Write a python program to calculate the compound interest
Write a python program to find sale price of an item with given price and discount
Write a Python Program to Calculate the Area of a Triangle
Write a python program for addition of two times in hour and minute format
Write a python program for addition of two times in hour minute and second format
Write a python program to print quotient
Write a python program to print quotient
Write a Python program to calculate simple interest
Write a Python program to calculate area and perimeter of a parallelogram
Write a Python program demonstrating working with power operator
Write a Python program of division operator
Write a Python program of modulus
Write a Python program convert dollars in Rupee
Write a Python program to convert kilometers to miles
Write a Python program to convert the distance in feet to inches yards and miles
Write a Python program to display menu to calculate area of square or rectangle
Write a python program to obtain x y z from user and calculate expression
Write a python program that reads a number of seconds and prints it in form mins and seconds
Write a python program to take a 2 digit number and then print the reversed number
Write a python program to take a 3 digit number and then print the reversed number
Write a python program to take two inputs for day month and then calculate which day of the year
Write a python program that asks a user for a number of years and then prints out the number of days hours minutes and seconds
Write a python program that inputs an age and print age after 10 years
Write a python program to calculate the radius of a sphere whose area is given
Write a python program to calculate the area of an equilateral triangle
Write a python program to input the radius of a sphere and calculate its volume
Write a python program to calculate amount payable after simple interest
Write a python program to input the time in second and convert into hours minute and seconds
UNIT - 6
Write a Python program to input 3 numbers and check all are same or not
Write a python program to input 3 numbers from user and check these are unique numbers are not
Relational Operator in Python
Write a Python program to input 3 numbers and check all are same or not
Write a python program to input 3 numbers from user and check these are unique numbers are not
UNIT - 7
Write a python program to take year as input and check if it is a leap year or not
Write a python program to take two numbers and print if the first number is fully divisible by second number or not
Logical Operator in Python
Write a python program to take year as input and check if it is a leap year or not
Write a python program to take two numbers and print if the first number is fully divisible by second number or not
UNIT - 8
Write a python program to input two number and swap them
Write a python program to input three number and swap 3 numbers
Write a python program to read 3 numbers in 3variables and swap first two variables with the sums of first and second
Assignment Operators in Python
Write a python program to input two number and swap them
Write a python program to input three number and swap 3 numbers
Write a python program to read 3 numbers in 3variables and swap first two variables with the sums of first and second
UNIT - 9
Write a Python credit card program
Write a Python program to print absolute value of number provided by the user
Write a Python program to check divisibility of a number
Write a Python program to print the largest number
Conditional statements
Write a Python credit card program
Write a Python program to print absolute value of number provided by the user
Write a Python program to check divisibility of a number
Write a Python program to print the largest number
UNIT - 10
Write a python program to check number is even or odd
Write a Python program to print larger number using swap
Write a python program to input three unequal numbers and display the greatest and the smallest number
if Statement in Python
Write a python program to check number is even or odd
Write a Python program to print larger number using swap
Write a python program to input three unequal numbers and display the greatest and the smallest number
UNIT - 11
Write a python program to take two numbers and check that the first number is fully divisible by second number or not
Write a python program to check the given year is leap year or not
Write a python program to calculate the roots of a given quadratic equation.
Write a python program to find simple interest based upon number of years
Write a python program to check where is profit or loss
Write a python program to check number is buzz number or not
Write a python program to input assets liabilities and capital then check accounting equation means balanced or not
Write a python program to input total debt and total assets and calculate total debt to total assets ratio and check whether major funded by assets or equity
Write a python program to calculate debt to equity check whether it is risky scenario for investor or not
Write a python program to input 2 integer number and check where they are same of different number
if else in Pythpn
Write a python program to take two numbers and check that the first number is fully divisible by second number or not
Write a python program to check the given year is leap year or not
Write a python program to calculate the roots of a given quadratic equation.
Write a python program to find simple interest based upon number of years
Write a python program to check where is profit or loss
Write a python program to check number is buzz number or not
Write a python program to input assets liabilities and capital then check accounting equation means balanced or not
Write a python program to input total debt and total assets and calculate total debt to total assets ratio and check whether major funded by assets or equity
Write a python program to calculate debt to equity check whether it is risky scenario for investor or not
Write a python program to input 2 integer number and check where they are same of different number
UNIT - 12
Write a pythoon program to read todays date only date Part from user Then display how many days are left in the current month
Write a python program to compute the result when two numbers and one operator is given by user
Write a python program to input a digit and print it in words
Write a python program to input any choice and to implement the following
Write a python program to check number is positive negative or zero
Write a Python program to calculate electricity bill
Write a Python program to input three number and print in ascending order
Write a Python program to check character is alphabetic character or not
Write a python program to input length of three sides of a triangle Then check if these sides will form a triangle or not
Write a python program to input 3 sides of a triangle and print whether it is an equilateral scalene or isosceles triangle
Write a Python program using if Elif else statement to find the number of days present in a month
Write a python program to accept marks of English math and science and display the appropriate stream allotted to the candidate
Write a python program to calculate income tax based on condition
Write a python program to calculate volume of cuboid cylinder and cone based on user choice
if elif else in Python
Write a pythoon program to read todays date only date Part from user Then display how many days are left in the current month
Write a python program to compute the result when two numbers and one operator is given by user
Write a python program to input a digit and print it in words
Write a python program to input any choice and to implement the following
Write a python program to check number is positive negative or zero
Write a Python program to calculate electricity bill
Write a Python program to input three number and print in ascending order
Write a Python program to check character is alphabetic character or not
Write a python program to input length of three sides of a triangle Then check if these sides will form a triangle or not
Write a python program to input 3 sides of a triangle and print whether it is an equilateral scalene or isosceles triangle
Write a Python program using if Elif else statement to find the number of days present in a month
Write a python program to accept marks of English math and science and display the appropriate stream allotted to the candidate
Write a python program to calculate income tax based on condition
Write a python program to calculate volume of cuboid cylinder and cone based on user choice
UNIT - 13
Write a python program to input any number and to find reverse of that number
Write a python program to input any string and count number of uppercase and lowercase letters
Write a python program to accept a integer number and find its sum of digit
Write a python program to count the number of digits in given number
Write a python program to find the largest digit of a given number
Write a python program to find the smallest digit of a given number
Write a python program to find the difference between greatest and smallest digits presents in the number
Write a python program to print the frequency of digits present in given number
Write a python program to check whether given number is Armstrong or not
Write a python program to convert decimal number to binary
Write a Python program to convert binary to decimal
Write a python program to input list of numbers and find those which are palindromes
Write a python program to place and the most significant digit of number
Write a python program to find the LCM of two input numbers
Write a python program to find GCD of 2 number
Write a python program to check number is perfect number or not
Write a python program to check number is special or not
Write a python program to find the smallest digit of the input number
Write a python program to check whether it is a prime number or not If it is not a prime then display the next number that is prime
While Statement
Write a python program to input any number and to find reverse of that number
Write a python program to input any string and count number of uppercase and lowercase letters
Write a python program to accept a integer number and find its sum of digit
Write a python program to count the number of digits in given number
Write a python program to find the largest digit of a given number
Write a python program to find the smallest digit of a given number
Write a python program to find the difference between greatest and smallest digits presents in the number
Write a python program to print the frequency of digits present in given number
Write a python program to check whether given number is Armstrong or not
Write a python program to convert decimal number to binary
Write a Python program to convert binary to decimal
Write a python program to input list of numbers and find those which are palindromes
Write a python program to place and the most significant digit of number
Write a python program to find the LCM of two input numbers
Write a python program to find GCD of 2 number
Write a python program to check number is perfect number or not
Write a python program to check number is special or not
Write a python program to find the smallest digit of the input number
Write a python program to check whether it is a prime number or not If it is not a prime then display the next number that is prime
UNIT - 14
Write a python program to calculate compound simple interest after taking the principle rate and time
Write a python program that searches for prime numbers from 15 through 25
Write a python program to test if given number is prime or not
Write a python program to check whether square root of a given number is prime or not
Write a python program to print first n odd numbers in descending order.
Write a python program to find the average of the list of the numbers entered through keyboard
Write a python program to find the largest number from the list of the numbers entered through keyboard
Write a python program to find the sum of n natural numbers
Write a python program to find the sum of first n even numbers
Write a python program to find the sum of first n odd numbers.
Write a python program to generate a list of elements of Fibonacci Series
Write a python program to input any number and to print all natural numbers up to given number
Write a python program to input any number and to find sum of all natural numbers up to given number
Write a python program to find the factorial value of given number
Write a python program to print factor of given number
Write a python program to check given number is composite number or not
Write a python program to print table of entered number
Write a python program to calculate the sum of odd numbers divisible by 5 from the range 1 to 100
Write a python program to print Floyds triangle
Write a python program to find all prime numbers up to given number
Write a Python program to print letters of word
Write a Python program to print ASCII code for entered message
Write a Python program to print first ten mersenne numbers
Write a python program to Print numbers from 11 to N When the number is a multiple of 3 print Tipsy when it is a multiple of 7 print Topsy
Write a python program to input N numbers and then print the second largest number
Write a Python program to print every integer between 1 and n divisible by m Also report whether the number that is divisible by m is even or odd
Write a python program to check number is perfect number or not
Write a python program to print all buzz numbers between 1 to n
Write a python program to display the first ten terms of the following series 2 5 10 17
Write a python program to find the sum of first ten terms of the series
For loop
Write a python program to calculate compound simple interest after taking the principle rate and time
Write a python program that searches for prime numbers from 15 through 25
Write a python program to test if given number is prime or not
Write a python program to check whether square root of a given number is prime or not
Write a python program to print first n odd numbers in descending order.
Write a python program to find the average of the list of the numbers entered through keyboard
Write a python program to find the largest number from the list of the numbers entered through keyboard
Write a python program to find the sum of n natural numbers
Write a python program to find the sum of first n even numbers
Write a python program to find the sum of first n odd numbers.
Write a python program to generate a list of elements of Fibonacci Series
Write a python program to input any number and to print all natural numbers up to given number
Write a python program to input any number and to find sum of all natural numbers up to given number
Write a python program to find the factorial value of given number
Write a python program to print factor of given number
Write a python program to check given number is composite number or not
Write a python program to print table of entered number
Write a python program to calculate the sum of odd numbers divisible by 5 from the range 1 to 100
Write a python program to print Floyds triangle
Write a python program to find all prime numbers up to given number
Write a Python program to print letters of word
Write a Python program to print ASCII code for entered message
Write a Python program to print first ten mersenne numbers
Write a python program to Print numbers from 11 to N When the number is a multiple of 3 print Tipsy when it is a multiple of 7 print Topsy
Write a python program to input N numbers and then print the second largest number
Write a Python program to print every integer between 1 and n divisible by m Also report whether the number that is divisible by m is even or odd
Write a python program to check number is perfect number or not
Write a python program to print all buzz numbers between 1 to n
Write a python program to display the first ten terms of the following series 2 5 10 17
Write a python program to find the sum of first ten terms of the series
UNIT - 15
Write a python program to find the 2nd largest number from the list of the numbers entered through keyboard.
Write a python program that creates a list of numbers from 1 to 20 that are divisible by 4
Write a python program to define a list of countries that are a member of BRICS Check whether a county is member of BRICS or not
Write a Python program to read marks of six subjects and to print the marks scored in each subject and show the total marks
Write a Python program to read prices of 5 items in a list and then display sum of all the prices product of all the prices and find the average
Write a Python program to count the number of employees earning more than 1 lakh per annum
Write a python program to create a list of numbers in the range 1 to 10 Then delete all the even numbers from the list and print the final list
Write a python program to generate in the Fibonacci series and store it in a list Then find the sum of all values
Write a python program to find minimum element from a list of elements along with its index in the list
Write a Python program to calculate mean of a given list of numbers
Write a Python program to search for an element in a given list of numbers
Write a python program to count frequency of a given element in a list of numbers
Write a python program to calculate the sum of integers of the list
Write a python program to reverses an array of integers
Write a python program to creates a third list after adding two lists
Write a python program that input a list, replace it twice and then prints the sorted list in ascending and descending order
Write a python program to check if the maximum element of the list lies in the first half of the list or in the second half
Write a python program to display the maximum elements from the two list along with its index in its list
Write a python program to swap list elements with even and locations
Write a python program to rotate list elements with next elements
Write a python program to increment the elements of list
Write a python program to enter a list containing number between 1 and 12 then replace all the entries in the list that are greater than 10 with 10
Write a python program that reverse the list of integers in place
Write a python program to input two list and create third list which contains all elements of the first elements followed by all elements of second list
Write a python program to inter list of string and create a new list that consist of those strings with their first characters removed
Write a python program to create a list using for loop which consist of integers 0 through 49
Write a python program to create a list using for loop which consist square of the integers 1 through 50
Write a python program to create a list using for loop which consist a bb ccc dddd that ends with 26 copies of the letter z.
Write a python program that takes any two list L and M of the same size and adds their elements together in another third list
Write a python program to rotates the elements of list so that fist elements move to second and second to the third
Write a python program to move all duplicate element to the end of list
Write a python program to display the maximum and minimum values form specified range of indexes of a list
Write a python program to compare two equal sized list and print the first index where they differ
Write a Python program that receives a Fibonacci series term and returns a number telling which term it is
Write a Python Program to accept three distinct digits and print all possible combinations from the digits
Write a Python Program to find the successor and predecessor of the largest element in list
List in Python
Write a python program to find the 2nd largest number from the list of the numbers entered through keyboard.
Write a python program that creates a list of numbers from 1 to 20 that are divisible by 4
Write a python program to define a list of countries that are a member of BRICS Check whether a county is member of BRICS or not
Write a Python program to read marks of six subjects and to print the marks scored in each subject and show the total marks
Write a Python program to read prices of 5 items in a list and then display sum of all the prices product of all the prices and find the average
Write a Python program to count the number of employees earning more than 1 lakh per annum
Write a python program to create a list of numbers in the range 1 to 10 Then delete all the even numbers from the list and print the final list
Write a python program to generate in the Fibonacci series and store it in a list Then find the sum of all values
Write a python program to find minimum element from a list of elements along with its index in the list
Write a Python program to calculate mean of a given list of numbers
Write a Python program to search for an element in a given list of numbers
Write a python program to count frequency of a given element in a list of numbers
Write a python program to calculate the sum of integers of the list
Write a python program to reverses an array of integers
Write a python program to creates a third list after adding two lists
Write a python program that input a list, replace it twice and then prints the sorted list in ascending and descending order
Write a python program to check if the maximum element of the list lies in the first half of the list or in the second half
Write a python program to display the maximum elements from the two list along with its index in its list
Write a python program to swap list elements with even and locations
Write a python program to rotate list elements with next elements
Write a python program to increment the elements of list
Write a python program to enter a list containing number between 1 and 12 then replace all the entries in the list that are greater than 10 with 10
Write a python program that reverse the list of integers in place
Write a python program to input two list and create third list which contains all elements of the first elements followed by all elements of second list
Write a python program to inter list of string and create a new list that consist of those strings with their first characters removed
Write a python program to create a list using for loop which consist of integers 0 through 49
Write a python program to create a list using for loop which consist square of the integers 1 through 50
Write a python program to create a list using for loop which consist a bb ccc dddd that ends with 26 copies of the letter z.
Write a python program that takes any two list L and M of the same size and adds their elements together in another third list
Write a python program to rotates the elements of list so that fist elements move to second and second to the third
Write a python program to move all duplicate element to the end of list
Write a python program to display the maximum and minimum values form specified range of indexes of a list
Write a python program to compare two equal sized list and print the first index where they differ
Write a Python program that receives a Fibonacci series term and returns a number telling which term it is
Write a Python Program to accept three distinct digits and print all possible combinations from the digits
Write a Python Program to find the successor and predecessor of the largest element in list
UNIT - 16
Write a python program to swap two values using tuple assignment
Write a python program using a function that returns the area and circumference of a circle whose radius is passed as an argument
Write a python program that has a list of positive and negative numbers Create a new tuple that has only positive numbers from the list
Write a python program to find maximum and minimum values in tuple
Write a python program to interchange the values of two tuple
Write a python program to interchange the values of two tuple
Write a python program that create a tuple storing first 9 terms of Fibonacci series
Write a python program that receives the index and return the corresponding value
Write a python program to create a nested tuple to store roll number name and marks of students
Write a python program that interactively creates a nested tuple to store the marks in three subjects for five students
Tuple in Python
Write a python program to swap two values using tuple assignment
Write a python program using a function that returns the area and circumference of a circle whose radius is passed as an argument
Write a python program that has a list of positive and negative numbers Create a new tuple that has only positive numbers from the list
Write a python program to find maximum and minimum values in tuple
Write a python program to interchange the values of two tuple
Write a python program to interchange the values of two tuple
Write a python program that create a tuple storing first 9 terms of Fibonacci series
Write a python program that receives the index and return the corresponding value
Write a python program to create a nested tuple to store roll number name and marks of students
Write a python program that interactively creates a nested tuple to store the marks in three subjects for five students
UNIT - 17
Write a Python Program that generate a set of prime numbers and another set of even numbers
Sets in Pyhton
Write a Python Program that generate a set of prime numbers and another set of even numbers
UNIT - 18
Write a python program to store the product information in dictionary
Write a python program to create a dictionary whose keys are month names and values are their corresponding number of days
Write a python program to enter names of employees and their salaries as input and store them in a dictionary
Write a python program to count the number of times a character appears in a given string
Write a python program to convert a number entered by the user into its corresponding number in words
Write a python program Repeatedly ask the user to enter a team name
Write a python program that repeatedly asks the user to enter product names and prices
Write a Python Program to Create a dictionary whose keys are month name and whose values are number of days in the corresponding month
Write a python program to store the detail of 10 students in a dictionary at the same time
Write a python program to Create a dictionary with the opposite mapping
Write a python program that lists the over lapping keys of the two dictionaries if a key of d1 is also a key of d2 the list it
Write a python program that checks if two same values in a dictionary have different keys
Write a python program to check if a dictionary is contained in another dictionary
Write a python program to create a new dictionary D2 having same keys as D1 but values as the sum of the list elements
Write a python program to create a dictionary has three keys assets liabilities and capital
Dictionary in Pyhton
Write a python program to store the product information in dictionary
Write a python program to create a dictionary whose keys are month names and values are their corresponding number of days
Write a python program to enter names of employees and their salaries as input and store them in a dictionary
Write a python program to count the number of times a character appears in a given string
Write a python program to convert a number entered by the user into its corresponding number in words
Write a python program Repeatedly ask the user to enter a team name
Write a python program that repeatedly asks the user to enter product names and prices
Write a Python Program to Create a dictionary whose keys are month name and whose values are number of days in the corresponding month
Write a python program to store the detail of 10 students in a dictionary at the same time
Write a python program to Create a dictionary with the opposite mapping
Write a python program that lists the over lapping keys of the two dictionaries if a key of d1 is also a key of d2 the list it
Write a python program that checks if two same values in a dictionary have different keys
Write a python program to check if a dictionary is contained in another dictionary
Write a python program to create a new dictionary D2 having same keys as D1 but values as the sum of the list elements
Write a python program to create a dictionary has three keys assets liabilities and capital
UNIT - 19
Write a Python function that takes a string as parameter and returns a string with every successive repetitive character replaced
String in Python
Write a Python function that takes a string as parameter and returns a string with every successive repetitive character replaced
UNIT - 20
Write a Write a function with name dividebyfive which generate and prints a random integer number from the range 0 to 100 and then return True if the randomly generated number is divisible by 5, and False otherwise.
Modular programming and functions
Write a Write a function with name dividebyfive which generate and prints a random integer number from the range 0 to 100 and then return True if the randomly generated number is divisible by 5, and False otherwise.
UNIT - 21
Write a python program to create a function to calculate factorial value
Write a Python program to find the sum of factorial upto n terms using function
Write a python program to create a function for reverse the number
Write a Python program to check number is Palindrome or not using function
Write a Python program to create a function for calculating sum of digit
Write a Python function to find the sum of all numbers between 100 and 500 which are divisible by 2
Write a Python function to get two matrices and multiply them
Function parameters
Write a python program to create a function to calculate factorial value
Write a Python program to find the sum of factorial upto n terms using function
Write a python program to create a function for reverse the number
Write a Python program to check number is Palindrome or not using function
Write a Python program to create a function for calculating sum of digit
Write a Python function to find the sum of all numbers between 100 and 500 which are divisible by 2
Write a Python function to get two matrices and multiply them
UNIT - 23
Write a Python program to convert decimal into other number systems
Write a python program that generates six random numbers in a sequence created with start stop step
Library function
Write a Python program to convert decimal into other number systems
Write a python program that generates six random numbers in a sequence created with start stop step
UNIT - 24
Write a Python program to create recursive function to find factorial
Write a python recursive function to find the sum of digits
Write a python recursive function to print the reverse of number
Recursion
Write a Python program to create recursive function to find factorial
Write a python recursive function to find the sum of digits
Write a python recursive function to print the reverse of number
UNIT - 25
Write a python program to print the calendar of given month and year
Write a python program to print the calendar of given year
Module Basics
Write a python program to print the calendar of given month and year
Write a python program to print the calendar of given year
UNIT - 26
Write a python program to print first n perfect numbers
Write a Python function which takes list of integers as input and finds the followings
Write a Python program to print all the prime numbers in the given range
Write a Python program to print the sum of series
Nested Loop
Write a python program to print first n perfect numbers
Write a Python function which takes list of integers as input and finds the followings
Write a Python program to print all the prime numbers in the given range
Write a Python program to print the sum of series
UNIT - 27
Write a python program to read the full content of specified txt file
Write a python program to accept file name and data from user and write data on file
Write a python program to count the number of lines in the file
Write a python program to display the size of a file in byte
Write a python program to display all the records in a file along with line number
Write a python program to display only last line of a text file
Write a python program that reads a text file and creates another file that is identical except that every sequence of consecutive blank spaces is replaced by single space
Write a Write Python code to display sentence starting with given character from abc.txt file
Write a Python code to display digits from abc.txt file
Write a python program to copy the one contents to another
Write a python program to copy the all word which start with constant in another file
Write a python program to write first n prime number in text file
Write a python program to marge the content of target file into source file
Write a python program to read txt file data from specified index to specified length
Write a python program to delete the specified file from computer
Handling TXT File
Write a python program to read the full content of specified txt file
Write a python program to accept file name and data from user and write data on file
Write a python program to count the number of lines in the file
Write a python program to display the size of a file in byte
Write a python program to display all the records in a file along with line number
Write a python program to display only last line of a text file
Write a python program that reads a text file and creates another file that is identical except that every sequence of consecutive blank spaces is replaced by single space
Write a Write Python code to display sentence starting with given character from abc.txt file
Write a Python code to display digits from abc.txt file
Write a python program to copy the one contents to another
Write a python program to copy the all word which start with constant in another file
Write a python program to write first n prime number in text file
Write a python program to marge the content of target file into source file
Write a python program to read txt file data from specified index to specified length
Write a python program to delete the specified file from computer
UNIT - 28
Write a python program to create a function that would read contents from the sports.dat and creates a file named Atheletic.dat
Write a python program to add delete and display all record of binary file
Handling Binary File
Write a python program to create a function that would read contents from the sports.dat and creates a file named Atheletic.dat
Write a python program to add delete and display all record of binary file
UNIT - 29
Write a python program to read csv file content line by line
Write a python program to read data from csv file
Write a Python program to write data on csv file
Handling CSV file
Write a python program to read csv file content line by line
Write a python program to read data from csv file
Write a Python program to write data on csv file
UNIT - 30
Write a python function to accept 2 number and return addition subtraction multiplication and division
Write a python function to accept number of days and return week and days to its equivalent
Write a python function to extract the day month year from given date
return multiple value
Write a python function to accept 2 number and return addition subtraction multiplication and division
Write a python function to accept number of days and return week and days to its equivalent
Write a python function to extract the day month year from given date
UNIT - 31
Write a Create a numpy array having two dimensions and shape(3,3) and perform the following operations on array elements:
Write a Write a program to find the intersection of two arrays
Arithmetic Operations on numPy Array
Write a Create a numpy array having two dimensions and shape(3,3) and perform the following operations on array elements:
Write a Write a program to find the intersection of two arrays
UNIT - 33
Write a python program to generate 3 random integers between 100 and 999 which is divisible by 5
Write a python program to generate 6 digit random secure OTP between 100000 to 999999
Write a python program to generate 6 random numbers and then print their mean median and mode
Random Module
Write a python program to generate 3 random integers between 100 and 999 which is divisible by 5
Write a python program to generate 6 digit random secure OTP between 100000 to 999999
Write a python program to generate 6 random numbers and then print their mean median and mode