You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the start of the lesson, an example is shown where a variable called "number" is created (the name of which I think has the potential to be confusing, but that's a different issue). Then, when showing the for loop, the temporary variable it uses is also called "number". Using the same name in both instances may cause confusion for some people, as they may misunderstand and think that the variables are the same (meaning that the "number" in the for loop is a variable that was previously declared in the code).
I would recommend changing this so that the examples showing the for loop use a different variable name than the first example that declares a variable. Also, for added clarity, in the part that says "In a for loop, the computer takes each value inside a list, stores it in a temporary variable, and executes the code in the loop once per value" it should be clarified in parentheses after "stores it in a temporary variable" what exactly that temporary variable is. If I'm understanding how this works correctly, it could maybe say something like "stores it in a temporary variable (which we name between the words "for" and "in" - note that this must follow normal variable naming rules, including the need for a unique name)".
The text was updated successfully, but these errors were encountered:
ghost
added
the
content
Issues with the lessons, practices, including their code examples
label
Jul 12, 2022
At the start of the lesson, an example is shown where a variable called "number" is created (the name of which I think has the potential to be confusing, but that's a different issue). Then, when showing the for loop, the temporary variable it uses is also called "number". Using the same name in both instances may cause confusion for some people, as they may misunderstand and think that the variables are the same (meaning that the "number" in the for loop is a variable that was previously declared in the code).
I would recommend changing this so that the examples showing the for loop use a different variable name than the first example that declares a variable. Also, for added clarity, in the part that says "In a for loop, the computer takes each value inside a list, stores it in a temporary variable, and executes the code in the loop once per value" it should be clarified in parentheses after "stores it in a temporary variable" what exactly that temporary variable is. If I'm understanding how this works correctly, it could maybe say something like "stores it in a temporary variable (which we name between the words "for" and "in" - note that this must follow normal variable naming rules, including the need for a unique name)".
The text was updated successfully, but these errors were encountered: