There is no error appearing in this python code but the output is incorrect. This is a code about calculating the average marks of a student.
english_1 = 22
urdu_1 = 23
maths_1 = 15
science_1 = 18
social_1 = 21
english_2 = 10
urdu_2 = 22
maths_2 = 13
science_2 = 25
social_2 = 11
def average_marks(english, urdu, maths, science, social):
average = english + urdu + maths + science + social / 5
print("average marks of student")
print(average)
result1 = average_marks(english_1, urdu_1, maths_1, science_1, social_1)
result2 = average_marks(english_2, urdu_2, maths_2, science_2, social_2)
this is the output
average marks of student 82.2 average marks of student 72.2
If you can pls help i am a beginner. Thank You!