Conteúdo do Curso
Introduction to Python
3. Conditional Statements
Boolean Data TypeChallenge: Comparison OperatorsCombining ConditionsChallenge: Logical OperatorsMembership Operators and Types ComparisonSimple if/else ExpressionsChallenge: Grocery StoreChallenge: Odd and Evenif/elif/else ExpressionsChallenge: Grocery Store ExtendedChallenge: Positive, Negative or Zero
Introduction to Python
Challenge
Tarefa
- 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
Tudo estava claro?
Seção 5. Capítulo 2
Conteúdo do Curso
Introduction to Python
3. Conditional Statements
Boolean Data TypeChallenge: Comparison OperatorsCombining ConditionsChallenge: Logical OperatorsMembership Operators and Types ComparisonSimple if/else ExpressionsChallenge: Grocery StoreChallenge: Odd and Evenif/elif/else ExpressionsChallenge: Grocery Store ExtendedChallenge: Positive, Negative or Zero
Introduction to Python
Challenge
Tarefa
- 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
Tudo estava claro?
Seção 5. Capítulo 2