Oh, I remember what I was taught at school! My IT teacher created a class in python whose attributes created a mathematical sequence. The goal was to guess the formula of this sequence using only python. Obviously, you could not look at the file with the class, but only import it into python. Maybe there is more mathematics than programming, but to solve this question, students will need to learn how variables, namespaces (to search for variables), loops (to print these variables) and classes (which store these variables) work in python, and that’s more or less all you need to know first, in my opinion.
Ah, good times. We also played hide and seek in a shell at IT lessons: the teacher hid the file somewhere and left some hints scattered around, and we had to find this file using the text environment in Linux :)
source share