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."],[[["\u003cp\u003eThis tutorial introduces \u003ccode\u003efor\u003c/code\u003e loops, a programming construct for repeating a block of code multiple times.\u003c/p\u003e\n"],["\u003cp\u003eThe tutorial is designed for beginners learning their first programming language or those transitioning to a new language with prior coding experience in another.\u003c/p\u003e\n"],["\u003cp\u003eReaders are expected to have basic knowledge of code editing, program execution, variable manipulation, and outputting data.\u003c/p\u003e\n"],["\u003cp\u003eThe tutorial focuses on practical application of \u003ccode\u003efor\u003c/code\u003e loops using code examples and explanations tailored to the target audience.\u003c/p\u003e\n"]]],["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,["# Exercise 4: Tutorials\n\n\u003cbr /\u003e\n\nWrite the start of a tutorial on `for` loops in the programming language of your\nchoice.\nUse code snippets as needed.\n\nPick one of the following audiences:\n\n- Students learning their first programming language who don't yet know what loops are.\n- 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.\n\nTo simplify the tutorial, assume that both audiences already know how to do\nthe following in whatever programming language they are learning:\n\n- Enter and modify source code.\n- Execute programs.\n- Create variables and assign values to those variables.\n- Output variable values and constant strings."]]