In the Python templates, what’s with the variable “initialisations” —- e.g. t = 0 in the light-speed one? I’ve seen similar stuff in my eldest’s computing homework: is it an accepted Python idiom that I’ve missed somehow?
Though, in that case, the solution is so trivial that t is completely unnecessary.
Don't think it's an idiom (at least not one that I've seen).
It's definitely not the nicest code, especially for simpler problems that are really one-liners but we figured lots of people would just click "submit" on just the code stubs.