Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge | Loops
Introduction to Python

Challenge

Tarefa

  1. Create a variable named i and set it to 1.
  2. Begin a while loop that runs for numbers from 1 to 9 (inclusive). Inside the loop, do the following:
    • Print the square of i;
    • Increment i by 1.

Tudo estava claro?

Seção 5. Capítulo 2
toggle bottom row
course content

Conteúdo do Curso

Introduction to Python

Challenge

Tarefa

  1. Create a variable named i and set it to 1.
  2. Begin a while loop that runs for numbers from 1 to 9 (inclusive). Inside the loop, do the following:
    • Print the square of i;
    • Increment i by 1.

Tudo estava claro?

Seção 5. Capítulo 2
toggle bottom row
some-alt