Course Content
Introduction to Python
Introduction to Python
Challenge
Swipe to show code editor
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
for
loop should just iterate from10
to20
.
Thanks for your feedback!
Challenge
Swipe to show code editor
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
for
loop should just iterate from10
to20
.
Thanks for your feedback!