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

Conteúdo do Curso

Introduction to Python

ChallengeChallenge

Tarefa

Using a for loop, print all the numbers from 10 to 20 (inclusive) squared (100, 121, 144, and so on). Make sure your output includes the squares of both the starting number (100) and the ending number (400).

Note

The square operator should only be applied in the print statement, whereas the for loop should just iterate from 10 to 20.

Tudo estava claro?

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

Conteúdo do Curso

Introduction to Python

ChallengeChallenge

Tarefa

Using a for loop, print all the numbers from 10 to 20 (inclusive) squared (100, 121, 144, and so on). Make sure your output includes the squares of both the starting number (100) and the ending number (400).

Note

The square operator should only be applied in the print statement, whereas the for loop should just iterate from 10 to 20.

Tudo estava claro?

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