Bringing It All Together
Let's put what we've learned to the test with this exercise.
Task
- 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.
Everything was clear?
Course Content
Introduction to Python
Introduction to Python
3. Conditional Statements
Bringing It All Together
Let's put what we've learned to the test with this exercise.
Task
- 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.
Everything was clear?