Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Episode 5: Include explanation of "datafile" #840
In the Loops episode, the "Variables in Loops" exercise early in the episode introduces the term 'datafile' as follows:
Now, what is the output of the following code?
This is the first instance of datafile. In the lead-up to this exercise, 'filename' is used in conjunction with the loop for *.dat files. It would be helpful to include an explanation of how datafile is different and why it's used in the exercise. Information about whether it's connected to any specific file extension types, or if there's a way to know when to use datafile vs. other terms when writing code, would be helpful for learners.
Datafile shows up again later in the lesson under "Nelle's Pipeline: Processing Files" so learners will see it again, but it isn't expanded upon in that part either.