About beginner python programming: - Make a function in Python called SIGA, which receives a tuple containing 4 pieces of information: the name of the student and his three respective grades. Your function should return a tuple, whose first element is the student's name, the second element is the grades average, and the third element is the student's situation, which must be represented by a string. If the average of the three grades of the student is greater than or equal to 7 (inclusive), the function should be return: (, ,’approved’, ’Congratulations!́). If the student's average grades is less than 7 but greater than or equal to 5, your function should return: (, ,’approved’). If the average is smaller than 5, the function should return (, ,’failed’). This function should return the average with one decimal place only.
About beginner python programming:
-
Make a function in Python called SIGA, which receives a tuple containing 4 pieces of information: the name
of the student and his three respective grades. Your function should return a tuple, whose first element is the student's name,
the second element is the grades average, and the third element is the student's situation, which must be represented
by a string. If the average of the three grades of the student is greater than or equal to 7 (inclusive), the function should be
return: (<name>, <average>,’approved’, ’Congratulations!́). If the student's average grades is less than 7 but
greater than or equal to 5, your function should return: (<name>, <average>,’approved’). If the average is smaller
than 5, the function should return (<name>, <media>,’failed’). This function should return the average
with one decimal place only.
Step by step
Solved in 3 steps with 1 images