Python program to implement Queue Operations
queue: implemented as a list front: integer having position of first (frontmost) element in queue rear: integer having position of… Read More »Python program to implement Queue Operations
queue: implemented as a list front: integer having position of first (frontmost) element in queue rear: integer having position of… Read More »Python program to implement Queue Operations
Python program a sort a sequence using insertion sort Output Enter list elements:56,86,54,76,58,87 Original list is [56, 86, 54, 76,… Read More »Python program to sort a sequence using insertion sort
Power a to b using recursion Output: Enter only the positive numbers belowEnter base number:7raised to the power of:37 raised… Read More »Python recursion in calculation of power
Power a to b using iteration Output: Enter only positive numbersEnter base number:8raised to the power of:28 raised to the… Read More »Python program to calculate a^b
Program to print Fibonacci series using recursion Output: Enter last term required:70,1,1,2,3,5,8,…
Program to count the frequency of given numbers in python Output Enter list:[17,16,18,17,17,25,25,23,26] Enter element:17 17 has frequency as 3… Read More »Python program to count the frequency of a given list of numbers
Program to check if the year entered by the user is a leap year or not Output Enter a 4-digit… Read More »Python program to check if the year entered by the user is a leap year or not
Python program that inserts and deletes elements in a list Output Enter list:3,6,2,7,9,4 The list is: [3, 6, 2, 7,… Read More »Python program that inserts and deletes elements in a list
INTRODUCTION You know that python strings are characters enclosed in quotes of any type- single quotation marks, double quotation marks… Read More »STRING MANIPULATION
Program to calculate simple interest Output Enter principal amount:10000 Enter time:2 Enter rate of interest:4 Simple interest with provided rate… Read More »Python program to calculate simple interest using the concept function