Icon New game New game

Python Elif Syntax Quiz

Yes or No

(1)
Test your understanding of elif in Python.

Download the paper version to play

24 times made

Created by

Qatar

Top 10 results

  1. 1
    02:06
    time
    88
    score
  2. 2
    shamoukh
    shamoukh
    00:35
    time
    75
    score
  3. 3
    Princess
    Princess
    01:23
    time
    50
    score
Do you want to stay in the Top 10 of this game? to identify yourself.
Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

  1. time
    score
  1. time
    score
time
score
time
score
 
game-icon

Python Elif Syntax QuizOnline version

Test your understanding of elif in Python.

by Arwa Saqer
1

You can have multiple elif clauses in a single if-elif-else chain.

2

An elif clause can run even if the initial if block executed a return statement.

3

In Python, elif is short for else if and comes after an if block.

4

Indentation must align for elif with the preceding if block.

5

An elif clause must start with the keyword elif and be followed by a condition and a colon.

6

The final else clause is optional and runs if none of the previous conditions are true.

7

Elif blocks do not require a condition after the keyword.

8

You can place an elif before the if in the chain.