Fish 1 Fish 2 Fish 3 Fish 4

Conditional Statements Challenge

1. What will the following code print?

if 10 > 5:
    print("Yes")
else:
    print("No")
            

2. What is the output of this code?

x = 3
if x == 3:
    print("Equal")
else:
    print("Not equal")
            

3. What will be printed by this code?

if 3 > 2 and 2 < 5:
    print("True")
else:
    print("False")
            

4. What will this code print?

x = 7
if x % 2 == 0:
    print("Even")
else:
    print("Odd")
            

5. What does this code output?

x = 5
if x > 3 or x < 2:
    print("True")
else:
    print("False")
            

6. What will be printed by this code?

if 4 != 5:
    print("True")
else:
    print("False")