Course Content
Introduction to Python
Introduction to Python
Bringing It All Together
Let's put what we've learned to the test with this exercise.
Note
In the third line of the task, you can see the
\"
symbol. It is one of the escape characters that are really useful in printing something in the console.
\n
Newline (line break) - moves to the next line. \t
Horizontal tab - adds a tab space for formatting. \\
Backslash ( \
) - includes a literal backslash in a string.\'
Single quote ( '
) - allows a single quote in a string.\"
Double quote ( "
) - includes a double quote in a string.
Task
- On the third line, print your name after greeting.
- 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.
Task
- On the third line, print your name after greeting.
- 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?
Bringing It All Together
Let's put what we've learned to the test with this exercise.
Note
In the third line of the task, you can see the
\"
symbol. It is one of the escape characters that are really useful in printing something in the console.
\n
Newline (line break) - moves to the next line. \t
Horizontal tab - adds a tab space for formatting. \\
Backslash ( \
) - includes a literal backslash in a string.\'
Single quote ( '
) - allows a single quote in a string.\"
Double quote ( "
) - includes a double quote in a string.
Task
- On the third line, print your name after greeting.
- 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.
Task
- On the third line, print your name after greeting.
- 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?
Bringing It All Together
Let's put what we've learned to the test with this exercise.
Note
In the third line of the task, you can see the
\"
symbol. It is one of the escape characters that are really useful in printing something in the console.
\n
Newline (line break) - moves to the next line. \t
Horizontal tab - adds a tab space for formatting. \\
Backslash ( \
) - includes a literal backslash in a string.\'
Single quote ( '
) - allows a single quote in a string.\"
Double quote ( "
) - includes a double quote in a string.
Task
- On the third line, print your name after greeting.
- 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.
Task
- On the third line, print your name after greeting.
- 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?
Let's put what we've learned to the test with this exercise.
Note
In the third line of the task, you can see the
\"
symbol. It is one of the escape characters that are really useful in printing something in the console.
\n
Newline (line break) - moves to the next line. \t
Horizontal tab - adds a tab space for formatting. \\
Backslash ( \
) - includes a literal backslash in a string.\'
Single quote ( '
) - allows a single quote in a string.\"
Double quote ( "
) - includes a double quote in a string.
Task
- On the third line, print your name after greeting.
- 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.