Exercise 4: Tutorials
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.
- Output variable values and constant strings.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 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"]]