Another thing to consider is if the code allows for multiple ways to do a thing, going through each situation and explaining why you recommend one way over another helps demystify the idea there is one way to do something, but also exposes students of your course that programming is about choices and forethought.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Another thing to consider is if the code allows for multiple ways to do a thing, going through each situation and explaining why you recommend one way over another helps demystify the idea there is one way to do something, but also exposes students of your course that programming is about choices and forethought.