Skip to content

ManojMaruvapalli/Python-MySQL-Codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-MySQL-Codes

Class 12 Codes on Python and MySQL

1.1 A program to input a number and print its cube.
1.2 A program to input a number and print its square root.
1.3 A program that inputs an integer in range 0-999 and prints if the integer entered is a 1/2/3 digit number.
1.4 A program that inputs an integer in range 0-999 and prints if the integer entered is a 1/2/3 digit number.
1.5 A program to print cubes of numbers in the range 15 to 20.
1.6 A program to print square root of every alternate number in the range 1 to 10.
1.7 A program that multiplies two integers without using the * operator, using repeted addition.
2.1 A program that reads a line and prints its statistics.
2.2 A program to create a dictonary containing names of competition winner students as key and number of their wins as values.
2.3 A program that adds list2 and list3 to list1 as single element each. The resultant list should me in the order off list3, elements of list1,list2.
2.4 A program that adds individual elements of list2 and list3 to list1. The resultant list should me in the order off list3, elements of list1,list2.
2.5 A program that finds an element's index/position in tuple WITHOUT using index().
2.6 A program that checks for the presence of a value inside a dictonary and prints its key.
2.7 A program that checks for the presence of a value inside a dictonary and prints its key, even if the case is different, i.e., match the two values ignored their case.
2.8 A program to sort using bubble sort.
2.9 A program to sort sequence using insertion sort.
3.1 A program to add two numbers through a function.
3.2 Program to calculate compound interest.
3.3 A program that recives two nummbers in a function and returns the results of all arthemetic operations (+,-,*,/,%) on these numbers.
4.1 A program that reads then converts it into binary, octal and hexadecimal equivalent number using built-in functions of python.
4.2 A program that inputs a real number and convets it to nearest integer using two different built-in functions. It also displays the given number rounded off to three decimal palces.
4.3 A program that encrypts a string then decrypts it.
4.4 A program to get request information from url and opens within the program.
5.1 A program to display the size of a file in bytes.
5.2 A program to display the number of lines in a file.
5.3 A program to to get roll numbers, names and marks of the students of a class (from the user) and store these details in a file called "Marks.txt".
5.4 A program to to add two more students' details to the file created "Marks.txt".
5.5 A program that displays the content in file "Marks.txt".
6.1 A recursive program that computes the sum of numbers 1...n; get the value from the user.
6.2 A recursive program to print a string backwards.
6.3 A recursive program to print a string backwards.
6.4 A program to show the use of recursion in calculation of a^b.
6.5 A program to calculate a^b usinng iterative code.
6.6 Program to calculate the factorial of an integer using recursion.
6.7 Program to print Fibonacci series using recursion.
6.8 Program for binary search.
6.9 A recursive function to implement binary search algorithm.
8.1 A program to plot a bar chart on to display the result of a school for five consecutive year.
8.2 A program to plot a graph for the function y=x^2.
8.3 A program to plot a pie chart on consumption of water in daily life.
8.4 A graph based on the production of wheat in different years.
8.5 A bar graph representing bed-sheets manufactured by a factory.
8.6 A program for graph of the give data.
8.7 A program to pie graph of the given data.
8.8 A program to make a graph of the given data.
9.1 Linear searching in array(linear list).
9.2 Binary Searching in an arry.
9.3 Insertion an element in a sorted array using traditional algorithm.
9.4 Insertion in sorted array using bisect module.
9.5 Deletion of an element from a sorted list.
9.6 Traversing a linear list.
9.7 Linear List Implimentation. A charity organization conducts camps in various locations of a city. Each camp is located at a location at a sepcific date. The organization maintains a montl1ly list of camp planned in this format:
03 New Cly, 18 T Nagar, 25 K Pura.
Where first two digits of every entry signify the date on which the camp is to be conducted. Write a program to inplement this along with the following point:
(i) A linear list, planned, stores the camps that are to be conducted. A camp's detils are added to planned list once NOC is obtained.
(ii) As soon as a camp is conducted, its details are moved to list conducted and removed from planned list.
(iii) Each camp servers some people.
(iv) The program should be able to provide options for adding to planned list, getting conducted camp's details, searching for a camp, a report of how many camps we are conducted so far and how many people were served and display the linear lists planned and conducted.
10.1 Proagram to perform the operation on stack in python.
10.2 Program to implement Queue operation.

About

Class 12 Codes on Python and MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published