Fish 1 Fish 2 Fish 3 Fish 4

Variables Challenge

1. What will be the value of `x` after this code?

x = 5
x = x + 3
            

2. What will the following code print?

x = "Hello"
y = "World"
print(x + " " + y)
            

3. What is the result of this code?

x = 10
y = 2
x = x / y
            

4. What is the value of `x` after this code?

x = 4
x *= 2
            

5. What is the output of this code?

x = "Python"
print(x[0])
            

6. What is the value of `x` after this code?

x = 10
x -= 5