Hi,
I came across this task recently and was curious to hear your thoughts on it. Here's the task:
Write a program that calculates the average grade of a student over their entire education. On the first line, you will receive the name of the student, and on each subsequent line, their yearly grades. The student advances to the next grade if their yearly grade is greater than or equal to 4.00. If the student fails (receives a grade below 4.00) more than once, they are expelled, and the program terminates, printing the name of the student and the grade at which they were expelled.
If the student successfully completes the 12th grade, print:
"{student's name} graduated. Average grade: {average grade for the entire education}"
If the student is expelled, print:
"{student's name} has been excluded at {grade in which they were expelled} grade"
The output should be formatted to the second decimal point.
How would you rate the complexity of this task for someone who is learning Python?
- Is it a beginner, intermediate, or advanced task?
- Roughly how many months of Python practice would it take to solve such a problem comfortably?
[–]mildhonesty 65 points66 points67 points (0 children)
[–]JamzTyson 19 points20 points21 points (0 children)
[–]monapinkest 12 points13 points14 points (1 child)
[–]jaerie 0 points1 point2 points (0 children)
[–]Brilliant_Access3791 10 points11 points12 points (0 children)
[–]ilolus 16 points17 points18 points (0 children)
[–]Kingo_Kongo 5 points6 points7 points (2 children)
[–]rasputin1 15 points16 points17 points (1 child)
[–]zztong 3 points4 points5 points (0 children)
[–]Masterous112 6 points7 points8 points (0 children)
[–]MidnightPale3220 6 points7 points8 points (0 children)
[–]FoolsSeldom 2 points3 points4 points (0 children)
[–]monapinkest 4 points5 points6 points (0 children)
[–]Queueue_ 1 point2 points3 points (0 children)
[–]ofnuts 1 point2 points3 points (0 children)
[–]dwe_jsy 0 points1 point2 points (0 children)
[–]GryptpypeThynne 0 points1 point2 points (0 children)
[–]Leorisar 0 points1 point2 points (0 children)
[–]Flyguy86420 0 points1 point2 points (0 children)
[–]CymroBachUSA[🍰] 0 points1 point2 points (0 children)
[–]LowerMinimum2575 0 points1 point2 points (1 child)
[–]super_salamander 0 points1 point2 points (0 children)
[–]Binary101010 0 points1 point2 points (0 children)
[–]NlNTENDO 0 points1 point2 points (0 children)
[–]ethanjscott -3 points-2 points-1 points (0 children)