# function that sort the list by the course namedef sortByCourse(lst, course):# if the course is CSEif(course == "CSE110"):return sorted(lst, key = lambda l: l[1], reverse = True)# if the course is PHYif(course == "PHY110"):return sorted(lst, key = lambda l: l[2], reverse = True)# if the course is MRead more
# function that sort the list by the course name def sortByCourse(lst, course): # if the course is CSE if(course == "CSE110"): return sorted(lst, key = lambda l: l[1], reverse = True) # if the course is PHY if(course == "PHY110"): return sorted(lst, key = lambda l: l[2], reverse = True) # if the course is MAT if(course == "MAT110"): return sorted(lst, key = lambda l: l[3], reverse = True)
lst = [["Alan", 95, 87, 91], ["Turing", 92, 90, 83], ["Elon", 87, 92, 80], ["Musk", 85, 94, 90]] # take course name as input course = input() # sort the list using fucntion sortedList = sortByCourse(lst, course) # print final result for c in sortedList: print(c[0])
Correct Answer to the question 'Which one of the following is a type of antivirus program' is b. Norton Explanation: Antivirus are those software programs that help to detect and remove viruses from the computer and provides a safe environment for users to work on. In the market, there are several aRead more
Correct Answer to the question ‘Which one of the following is a type of antivirus program’ isb. Norton
Explanation: Antivirus are those software programs that help to detect and remove viruses from the computer and provides a safe environment for users to work on. In the market, there are several antivirus programs available and the Norton is one of them.
Answer to this question 'Which statement is true about Agile and DevOps MCQ' is c. Agile focuses on delivering customer value, while DevOps focuses on testing.
Answer to this question ‘Which statement is true about Agile and DevOps MCQ’ is
c. Agile focuses on delivering customer value, while DevOps focuses on testing.
Suppose a list contains marks earned in the courses CSE110, …
# function that sort the list by the course namedef sortByCourse(lst, course):# if the course is CSEif(course == "CSE110"):return sorted(lst, key = lambda l: l[1], reverse = True)# if the course is PHYif(course == "PHY110"):return sorted(lst, key = lambda l: l[2], reverse = True)# if the course is MRead more
Which one of the following is a type of antivirus program?
Correct Answer to the question 'Which one of the following is a type of antivirus program' is b. Norton Explanation: Antivirus are those software programs that help to detect and remove viruses from the computer and provides a safe environment for users to work on. In the market, there are several aRead more
Correct Answer to the question ‘Which one of the following is a type of antivirus program’ is b. Norton
Explanation: Antivirus are those software programs that help to detect and remove viruses from the computer and provides a safe environment for users to work on. In the market, there are several antivirus programs available and the Norton is one of them.
See lessWhich one of the following SQL type represent getfloat()?
b. REAL
b. REAL
See lessWhich of the following is not a JDBC drivers? a. …
Answer: d. Local Protocol driver
Answer: d. Local Protocol driver
See lessArtificial Intelligence is about mcq answer
Answer: b. Making a machine Intelligent
Answer: b. Making a machine Intelligent
See lessWhich statement is true about Agile and DevOps?
Answer to this question 'Which statement is true about Agile and DevOps MCQ' is c. Agile focuses on delivering customer value, while DevOps focuses on testing.
Answer to this question ‘Which statement is true about Agile and DevOps MCQ’ is
c. Agile focuses on delivering customer value, while DevOps focuses on testing.
See less