Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please i need answers for these three question with description as soon as possible 4. commonData(listi, list2) - Function that takes two lists (of numbers
please i need answers for
4. commonData(listi, list2) - Function that takes two lists (of numbers or characters) and returns true if they have at least one common element. 5. sortlist(nlist, order) - Function that sorts a list nList, either in descending or ascending order. 6. Write a Python program that reads a text file called student.txt. The input text file contains student_ID, student_name, Quiz_grade as well as Test_grade for each student. Your program should read each student details from the file Then calculate the average of Quizzes and Tests marks Display the students' details: Total number of students, total average, the total highest and lowest marks. The program should output the report into a file called output.txt. A sample of output text file is given below. . . student.txt: Test (60%) 50 90 ID 20181867 20197541 20183245 20199876 20185432 20179807 Name Alia Shamma Zainab Noora Hamda Fatma Quiz (40%) 65 97 79 66 30 78 84 75 55 82 output.txt: Class Report There are total of 6 students The average of total marks is 71.267 Shamma (20197541) scored the highest marks as 45 Hamda (20185432) scored the lowest marks as 92.8 these three question with description as soon as possible
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started