by jareds on 4/7/25, 7:03 PM with 3 comments
by pvg on 4/7/25, 7:08 PM
by pestatije on 4/7/25, 7:48 PM
by zahlman on 4/8/25, 12:19 AM
If you specifically want to practice using language features, you could start by taking a LeetCode etc. problem you find easy, and deliberately trying to write the code in different ways.
Oh, but take out the boilerplate that they want you to use for their automated testing. Test it yourself at the REPL, and make sure you have a good idea for what sorts of inputs to test with (and that you know what output to expect).
And, if you're feeling adventurous, read through the documentation for the `unittest` standard library and figure out how to test it yourself. Then look up Pytest and try to use that instead.
But you might be better served by trying to think of your own exercises, honestly.