You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In part 1 of the exercise you need to retrieve all courses that have Enable as True but when submitting the exercise the check is saying that I'm missing a course from the list that has Enable as False.
In part 2 of the exercise you need to retrieve data from a specific course and when submitting the exercise the check says that I have wrong maximum number of students in a week but it's the largest number of students from the retrieved course, so I'm very confused.
I experienced the same issue until I changed my code to explicitly import urllib.request and used the function urllib.request.urlopen without any modifications.
As the NB say:
NB: It is essential that you retrieve the data with the function urllib.request.urlopen, or the automated tests may not work correctly.
NB2: The tests are designed so that they slightly modify the data retrieved from the internet, to make sure you do not hard-code your return values.
In part 1 of the exercise you need to retrieve all courses that have Enable as True but when submitting the exercise the check is saying that I'm missing a course from the list that has Enable as False.

{'week': 8, 'exercises': [0, 4, 4, 4, 5, 3, 3, 4], 'enabled': False, 'miniproject': False, 'peerReviewOpen': False, 'extension': False, '_id': '5c3dd379e2ecb8022bb75407', 'year': 2019, 'term': 'Fall', 'fullName': 'Cloud Computing Fundamentals', 'name': 'CCFUN', 'url': 'https://ccfun.fi/home', '__v': 8}
In part 2 of the exercise you need to retrieve data from a specific course and when submitting the exercise the check says that I have wrong maximum number of students in a week but it's the largest number of students from the retrieved course, so I'm very confused.

{'students': 4434, 'hour_total': 13718, 'exercise_total': 25199, 'hours': [None, 883, 1186, 879, 499, 274, 187, 48, 80, 15, 64, 4]}
{'students': 3123, 'hour_total': 26589, 'exercise_total': 42319, 'hours': [None, 45, 161, 260, 302, 302, 319, 160, 335, 122, 321, 46, 162, 24, 42, 104, 43, 15, 28, 6, 121, 5, 15, 1, 29, 16, 73]}
{'students': 2241, 'hour_total': 36425, 'exercise_total': 43278, 'hours': [None, 9, 14, 29, 62, 80, 107, 58, 124, 46, 239, 34, 145, 38, 62, 165, 94, 36, 75, 21, 298, 23, 38, 20, 48, 84, 20, 5, 6, 2, 84, 1, 9, None, 4, 16, 6, 2, 3, 1, 43, None, 2, None, None, 8, 1, None, 9, None, 44]}
{'students': 1714, 'hour_total': 33010, 'exercise_total': 36906, 'hours': [None, 7, 4, 10, 18, 43, 42, 27, 65, 23, 132, 23, 95, 28, 48, 138, 71, 24, 56, 34, 248, 29, 48, 29, 54, 103, 17, 2, 15, 1, 94, 3, 6, None, 5, 19, 6, 4, 1, 2, 49, None, None, None, 1, 7, None, None, 7, 1, 14, None, 1, 1, None, 2, None, None, None, 35]}
{'students': 1227, 'hour_total': 25443, 'exercise_total': 24974, 'hours': [None, 6, 1, 3, 11, 20, 22, 12, 44, 18, 65, 9, 55, 15, 36, 91, 50, 12, 57, 16, 204, 24, 25, 13, 48, 92, 10, 9, 14, None, 98, 2, 4, 1, 1, 18, 5, 1, 4, None, 46, None, 3, None, 1, 4,
2, None, 3, None, 12, 1, None, None, 1, 1, None, None, None, None, 5, None, None, 1, None, 15]}
{'students': 1010, 'hour_total': 20691, 'exercise_total': 20163, 'hours': [None, 4, 3, 2, 10, 12, 12, 9, 25, 9, 76, 12, 43, 21, 25, 80, 41, 17, 45, 16, 157, 26, 38, 11, 29, 87, 10, 7, 6, 1, 66, 1, 4, 1, 4, 13, 3, 1, 3, 3, 28, 1, 4, None, None, 7, None, None, 5, 1, 9, 1, None, None, None, None, None, None, None, None, 3, None, None, None, None, 11]}
{'students': 890, 'hour_total': 13988, 'exercise_total': 18084, 'hours': [None, 8, 7, 8, 21, 21, 32, 18, 53, 22, 92, 21, 68, 19, 28, 88, 61, 15, 30, 8, 103, 8, 9, 7, 18, 28, 4, 2, 6, None, 27, None, 6, None, 2, 5, None, 1, 2, None, 7, 1, 2, None, None, 1, None, None, 1, 1, 18]}
{'students': 717, 'hour_total': 16484, 'exercise_total': 12454, 'hours': [None, 10, 7, 10, 6, 9, 10, 12, 15, 3, 19, 3, 22, 4, 17, 32, 18, 12, 23, 4, 104, 17, 19, 10, 34, 67, 12, 6, 13, None, 77, None, 13, 2, 1, 16, 5, 1, 1, None, 26, 1, None, None, None,
4, 1, 1, 4, 1, 14, None, None, None, 1, 1, None, None, None, None, 4, None, None, None, None, 1, None, None, 13]}
{'students': 494, 'hour_total': 11777, 'exercise_total': 11836, 'hours': [None, 3, 1, 1, 5, 3, 6, 3, 10, 8, 19, 3, 16, 4, 10, 24, 10, 8, 17, 4, 71, 6, 18, 6, 24, 46, 11, 3, 13, 2, 51, None, 9, 2, 1, 10, 4, None, 4, 1, 21, None, None, None, None, 7, 1, None, 1, None, 6, None, None, None, None, 2, 1, None, 1, 1, 4, None, None, None, 1, None, None, None, None, None, None, 7]}
{'students': 112, 'hour_total': 2928, 'exercise_total': 2743, 'hours': [None, None, 3, None, 1, None, None, 1, 3, None, 3, 1, 3, 1, 2, 3, 3, 1, 1, None, 21, 1, 3, 1, 5, 9, 2, 3, 2, None, 10, None, 3, None, None, 3, None, 1, 2, None, 8, None, 1, None, None, 1, 1, None, None, None, 2, None, 1, None, None, None, None, None, 1, None, 1, None, None, None, None, 1, None, None, None, None, None, None, None, None, None, None, None, 2]}
{'students': 2, 'hour_total': 8, 'exercise_total': 0, 'hours': [None, 1, None, None, None, None, None, 1]}
The text was updated successfully, but these errors were encountered: