Icon Crear Crear

Python Elif Syntax Quiz

Sí o No

(1)
Test your understanding of elif in Python.

Descarga la versión para jugar en papel

24 veces realizada

Creada por

Qatar

Top 10 resultados

  1. 1
    02:06
    tiempo
    88
    puntuacion
  2. 2
    shamoukh
    shamoukh
    00:35
    tiempo
    75
    puntuacion
  3. 3
    Princess
    Princess
    01:23
    tiempo
    50
    puntuacion
¿Quieres aparecer en el Top 10 de este juego? para identificarte.
Crea tu propio juego gratis desde nuestro creador de juegos
Compite contra tus amigos para ver quien consigue la mejor puntuación en esta actividad

Top juegos

  1. tiempo
    puntuacion
  1. tiempo
    puntuacion
tiempo
puntuacion
tiempo
puntuacion
 
game-icon

Python Elif Syntax QuizVersión en línea

Test your understanding of elif in Python.

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