In what concerns the "exercises during classes" component of the evaluation, the exercises that you can submit for this class are:
Deadline for submission: November 9th (submit to IP's Mooshak)
You are encouraged to talk to the professors and your colleagues if you encounter difficulties.
However, any more direct help that you receive should be acknowledged in the comments of the code you submit.
After the deadline the problems will still be available on Mooshak, but the submissions will not count towards your grade.
Each practical class is worth 10% of your final component for exercices during class. Since there will be 11 classes with submissions, you can achieve maximum grade even without doing all classes.
For a problem to count you must pass all tests (that is, to have an accepted). Even if you solve all problems, the maximum on one class is 100%.
To obtain 100% it will always be enough to solve the main exercises.
With the exercises in this class you will develop the following skills:
If you feel stuck, go back and revise the lectures T02: The basics | T03: Conditionals | T04: Program Flow | | T05: Functions | T06: More Functions | T07: Algorithms | T08: Tuples and Lists
1) Slicing your way
The first set of problems is all about the concept of slicing (see T08). Can you master it? 😇
Read the statements, code and try to submit Accepted solutions to all of the following problems. Don't forget to test first on your computer!
2) Iterables and Sequences
Tuples and Strings are immutable iterables and sequences (see T08) so you can traverse them with a for in cycle and do other things such as checking the length, checking is something is contained, indexing, slicing, concatenating, multiplying, etc.
A very useful pattern for iterating is the following:
initialize a result variable to be an initial value loop update the result based on current value(s) return the result
Just to give a few examples:
Have you seen this pattern on previous problems? Can you use it (or variants of it) on problems just as these ones?
Read the statements, code and try to submit Accepted solutions to all of the following problems. Don't forget to test first on your computer!
Loved the main exercises and want mode adventure in Wonderland? Here are more exercises to meet more characters. These extra problems are here to help you sharpen your skills and reward those that are coding for the love of learning.
Read the statements, code and try to submit Accepted solutions to all of the following problems. Don't forget to test first on your computer!
You almost conquered Wonderland, but there is still one last hurdle. Can you help Alice on the ultimate challenge of this class?
This challenge is of algorithmic nature, so you need and efficient solution and not just a correct (but more "brute force") approach if you don't want to face a Time Limit Exceeded. Can you think how you can take advantage of the patterns that form?
This exercise is more challenging and not so trivial or immediate, so give yourself some time to think about it before looking for help.
Read the statements, code and try to submit Accepted solutions to the following problem. Don't forget to test first on your computer!
Happy coding! 😊