Write a function called findpassed that recieves two


Phyton program

You have a program that has 10 student names, 10 random student grades.

Names = StudentNames()

Grades = StudentGrades()

Function: Find passed students only.

Write a function called FindPassed that recieves two parameters which are a list of students names and another list that contain their grades.

The function returns back a list. The function first creates an empty list called PassedStudents.

Then, the function checks the grades of the students one by the one to see if the student passed the test 2 or not. The success grade is 50.

In case the student is passed then the function add his/her name to list PassedStudents.

At the end of the function, it returns back the list PassedStudents.
def FindPassed(Names, Grades):

PassedStudent = []

for i in range (0, len(Grades),1):
if Grades[i] > 49:
PassedStudent.append(Grades[i])
PassedStudent.append(Names[i])
print (PassedStudent)

return PassedStudents

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a function called findpassed that recieves two
Reference No:- TGS02887300

Expected delivery within 24 Hours