@futurebird
"Hard to understand code is bad code."
Yes it is.
This may not be appropriate to your CS curriculum, but your interested students should read The Elements of Programming Style, by Brian W. Kernighan and P. J. Plauger.
A quick summary is here:
https://carma.astro.umd.edu/nemo/pitp/papers/style.pdf