Practical List - Class 12 - 2023-24

 (1) Write a program to accept temperature in degrees from the user and store it in a list. Then convert these values in Fahrenheit and print both the values in two columns.

(2) Write a program to accept the name and marks of students and store them in a dictionary. Also write codes to print the contents of the dictionary.

(3) Write a function to find the biggest number without using any in-built function. The function should accept a list of integer values and should return an integer.

(4) Write a function to find the sum of all the numbers given as arguments.

(5) Write a function to find the sum of all the digits of a number.

(6) Write a menu based program to find the area and perimeter of a rectangle. Separate functions should be used for area and perimeter.

(7) Write a program to count the number of characters and number of words in a text file.

(8) Write a program to count the number of lines in a text file using readline() and readlines() and compare the result whether it is equal or not.

(9) Write a program to print those lines of a text file whose second character is 'H'.

(10) Write a program to get the substring of the first 5 characters from the third line from a text file.

(11) Write a program to get student data (roll no. , name and percentage) from the user and write onto a binary file. The program should be able to get data from the user and write onto the file as long as the user wants.

(12) Write a program to read the data from the file created in the previous program and print all the details on the screen in tabular form.

(13) Write a program to save and print the passwords in a binary file. Use a dictionary to store the data.

(14) Write a menu based program to simulate the bank process. Program should use the csv file concept. The program should have the facility to deposit, withdraw and display options.

(15) Write a menu based program to implement stack operations (PUSH, POP and DISPLAY).

No comments:

Post a Comment