Practice Exercises

Practice what you’ve learned so far.

Let's see what you’ve learned so far with a quiz. Let's begin!

Quiz yourself!

Variables and built-in functions

1.

Consider the following Python code snippet:

num1 = 5
num2 = 8
num2 = num1
print("The value of num2 is:", num2)

What is the final value of variable num2?

A.

10

B.

8

C.

5

D.

None of the above


1 / 3

A quick knowledge test

...