- The Following Dictionary Contains Some Courses And The List Of Tutorials For Each Of Them First Year Courses 1 (41.46 KiB) Viewed 40 times
The following dictionary contains some courses and the list of tutorials for each of them. [ ] _first_year_courses = { "
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
The following dictionary contains some courses and the list of tutorials for each of them. [ ] _first_year_courses = { "
The following dictionary contains some courses and the list of tutorials for each of them. [ ] _first_year_courses = { "COMP1010": ["T15A", "T17A", "T18A"], "FINS1612": ["M11A", "W12A"], "FINS1613": ["T12A", "T12B", "F09A"], "ACCT1501": ["T10A", "F15A"], "INFS3605": ["M10A", "T15A", "W12A", "W12B"]} What is the first tutorial for COMP1010? [ ] Construct a list containing all the courses that have exactly 3 tutorials. You should get this as a result: ["COMP1010", "FINS1613"] [ ] Construct a list containing all the courses with a tutorial on a Tuesday (i.e. the tutorial code starts with a 'T'). You should get this as a result: ["COMP1010", "FINS1613", "ACCT1501", "INFS3605"] Hint: Depending on how you approach this, you may need a nested loop. [ ]