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

Course Content

Introduction to Python

ChallengeChallenge

Task

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.

Everything was clear?

Section 5. Chapter 6
toggle bottom row
some-alt