Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Bringing It All Together | First Acquaintance
Introduction to Python
course content

Course Content

Introduction to Python

Introduction to Python

1. First Acquaintance
2. Variables and Types
3. Conditional Statements
4. Other Data Types
5. Loops
6. Functions

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.

\nNewline (line break) - moves to the next line.
\tHorizontal 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

  1. On the third line, print your name after greeting.
  2. Divide 2894 by 274 to get an integer result, then raise that result to the power of 4. This goes on line 6.
  3. 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

  1. On the third line, print your name after greeting.
  2. Divide 2894 by 274 to get an integer result, then raise that result to the power of 4. This goes on line 6.
  3. 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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 1. Chapter 6
toggle bottom row

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.

\nNewline (line break) - moves to the next line.
\tHorizontal 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

  1. On the third line, print your name after greeting.
  2. Divide 2894 by 274 to get an integer result, then raise that result to the power of 4. This goes on line 6.
  3. 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

  1. On the third line, print your name after greeting.
  2. Divide 2894 by 274 to get an integer result, then raise that result to the power of 4. This goes on line 6.
  3. 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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 1. Chapter 6
toggle bottom row

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.

\nNewline (line break) - moves to the next line.
\tHorizontal 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

  1. On the third line, print your name after greeting.
  2. Divide 2894 by 274 to get an integer result, then raise that result to the power of 4. This goes on line 6.
  3. 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

  1. On the third line, print your name after greeting.
  2. Divide 2894 by 274 to get an integer result, then raise that result to the power of 4. This goes on line 6.
  3. 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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

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.

\nNewline (line break) - moves to the next line.
\tHorizontal 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

  1. On the third line, print your name after greeting.
  2. Divide 2894 by 274 to get an integer result, then raise that result to the power of 4. This goes on line 6.
  3. 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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below
Section 1. Chapter 6
Switch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt