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

Зміст курсу

Introduction to Python

ChallengeChallenge

Завдання

  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.

Все було зрозуміло?

Секція 5. Розділ 2
toggle bottom row
course content

Зміст курсу

Introduction to Python

ChallengeChallenge

Завдання

  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.

Все було зрозуміло?

Секція 5. Розділ 2
toggle bottom row
some-alt