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
Bringing It All Together
Let's put what we've learned to the test with this exercise.
Tarefa
- On the third line, within the
print()
function, replace"name"
with your own name. - Divide
2894
by274
to get an integer result, then raise that result to the power of4
. This goes on line 6. - Comment out both the first and seventh lines so they won't display in the console.
Note
Don't confuse the
/
and//
operators. Only the//
operator returns an integer result.
Tudo estava claro?
Seção 1. Capítulo 6
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
Bringing It All Together
Let's put what we've learned to the test with this exercise.
Tarefa
- On the third line, within the
print()
function, replace"name"
with your own name. - Divide
2894
by274
to get an integer result, then raise that result to the power of4
. This goes on line 6. - Comment out both the first and seventh lines so they won't display in the console.
Note
Don't confuse the
/
and//
operators. Only the//
operator returns an integer result.
Tudo estava claro?
Seção 1. Capítulo 6