Course Content
Introduction to Python
Introduction to Python
Challenge
Swipe to show code editor
-
Create a variable named
i
and set it to1
. -
Begin a
while
loop that runs for numbers from1
to9
(inclusive). Inside the loop, do the following:- Print the square of
i
; - Increment
i
by1
.
- Print the square of
Thanks for your feedback!
Challenge
Swipe to show code editor
-
Create a variable named
i
and set it to1
. -
Begin a
while
loop that runs for numbers from1
to9
(inclusive). Inside the loop, do the following:- Print the square of
i
; - Increment
i
by1
.
- Print the square of
Thanks for your feedback!