<reponame>dodieboy/Np_class
#Programming I

########################
#     Mission 5.2      #
#    Average Marks     #
########################

#Background
#==========
#You are suppose to display all the students and their respective marks
#and to calculate the average mark for these students
#   1) John - 100
#   2) Tom - 75
#   3) Jane - 80
#   4) Jim - 20
#   5) Mary - 50
#   6) Steve - 70
#   7) Anne - 95

#Important Notes
#===============
#You MUST use the following variables
#   - student_list
#   - mark_list
#   - average



#START CODING FROM HERE
#======================

#Create the lists student_list and mark_list
student_list = ('John', 'Tom', 'Jane', 'Jim', 'Mary', 'Steve', 'Anne')
mark_list =  (100, 75, 80, 20, 50, 70, 95)


#Calculate and return the average mark
def calculate_average(student_list, mark_list):
    average = 0
    for i in range(len(student_list)):        
        average += mark_list[i]
    average = average / len(student_list)

    return average #Do not remove this line

    
#Do not remove the next line
calculate_average(student_list, mark_list)

#output 70