Icon Créer jeu Créer jeu

Python Elif Syntax Quiz

Oui ou Non

(1)
Test your understanding of elif in Python.

Téléchargez la version pour jouer sur papier

24 fois fait

Créé par

Qatar

Top 10 résultats

  1. 1
    02:06
    temps
    88
    but
  2. 2
    shamoukh
    shamoukh
    00:35
    temps
    75
    but
  3. 3
    Princess
    Princess
    01:23
    temps
    50
    but
Voulez-vous apparaître dans le Top 10 de ce jeu? pour vous identifier.
Créez votre propre jeu gratuite à partir de notre créateur de jeu
Affrontez vos amis pour voir qui obtient le meilleur score dans ce jeu

Top Jeux

  1. temps
    but
  1. temps
    but
temps
but
temps
but
 
game-icon

Python Elif Syntax QuizVersion en ligne

Test your understanding of elif in Python.

par 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.