Stay organized with collections
Save and categorize content based on your preferences.
Write the start of a tutorial on for loops in the programming language of your
choice.
Use code snippets as needed.
Pick one of the following audiences:
Students learning their first programming language who don't yet know what
loops are.
Students who already know at least one programming language but are now
learning a new programming language. For example, students who already know C
or C++ but are now learning Python.
To simplify the tutorial, assume that both audiences already know how to do
the following in whatever programming language they are learning:
Enter and modify source code.
Execute programs.
Create variables and assign values to those variables.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-31 UTC."],[[["This tutorial introduces `for` loops, a programming construct for repeating a block of code multiple times."],["The tutorial is designed for beginners learning their first programming language or those transitioning to a new language with prior coding experience in another."],["Readers are expected to have basic knowledge of code editing, program execution, variable manipulation, and outputting data."],["The tutorial focuses on practical application of `for` loops using code examples and explanations tailored to the target audience."]]],["This content outlines instructions for creating a tutorial on `for` loops. The tutorial should be written for one of two specified audiences: either students new to programming or students with prior programming experience learning a new language. The tutorial should incorporate code snippets and assumes the audience is already familiar with basic programming tasks like entering code, running programs, creating, and assigning variables, and outputting data. The primary focus is explaining `for` loops.\n"]]