Exercise 4: Tutorials
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.
- 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 2025-03-31 UTC.
[null,null,["Last updated 2025-03-31 UTC."],[],["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"],null,[]]