### Instruction: The average marks of a class of 26 students is 40 and that of another class of 50 students is 60. Find the average marks of all the students?
Answer Choices: (A) 52.2 (B) 59.5 (C) 52.8 (D) 52.5 (E) 53.1 Let's write a Python program.### Response: # Number of students in each class
students_class1 = 26
students_class2 = 50

# Average marks of each class
avg_marks_class1 = 40
avg_marks_class2 = 60

# Calculate the total marks for each class
total_marks_class1 = students_class1 * avg_marks_class1
total_marks_class2 = students_class2 * avg_marks_class2

# Calculate the total marks of all students
total_marks = total_marks_class1 + total_marks_class2

# Calculate the total number of students
total_students = students_class1 + students_class2

# Calculate the average marks of all students
avg_marks = total_marks / total_students
print(avg_marks)