Computer Science, asked by AliAstuteWinn, 19 hours ago

Pls anyone need help pls help me I am a student of class 8 pls help in computer Q1 write a python programme to check if number is greater than 60 then print you have passed with first class division note:koi spam nhi jaldi jawab do koi illegal answer dega toh report ​

Answers

Answered by 3895bittu
1

Answer:

Python program to sort and find the data in the student records

Consider a software for maintaining records of the students in a class. Consider the following functions which are required to be performed:

Sorting of names according to First Name of the students.

Finding the Minimum marks among all the marks

Finding contact number of student using his/her First Name.

The task is to write a Python program to implement the software having these three functionalities.

Approach: For the above problem we should use a dictionary that either takes a name as a whole to key and other data as value to it or vice versa. Here I have taken the name as a key and contact number, marks as the value associated with the name. So at first the user needs to enter the details of the students and these details will be stored in dictionary as {[‘first name’, ‘second name’]:(‘contact number’, ‘marks’)}. Then we create a new list of tuples that store data according to the function requirement. In the program four user-defined functions have been created:

sort( ) function that sorts the record based on the first name.

minmarks( ) function that finds the minimum marks from all records.

searchdetail( ) function that takes first name as an input and fetch student contact number from the corresponding record.

option() function for showing the options.

Below is the implementation:

Similar questions