New game
Download
Get Academic Plan
Share game
Fill in the Blanks
Fill in the Blanks

Ciclo For en Python

Integrate it into your platform

You can integrate the game into an LMS compatible with LTI 1.1 or LTI 1.3 such as Canvas, Moodle, or Blackboard. This way, the scores will be automatically saved into the platform’s gradebook.
Download
You have exceeded the maximum number of games you can integrate into Google Classroom with your current Plan.

To integrate as many games as you want in Google Classroom, you need an Academic Plan or a Commercial Plan.

You have exceeded the maximum number of games you can integrate into Microsoft Teams with your current Plan.

To integrate as many games as you want in Microsoft Teams, you need an Academic Plan or a Commercial Plan.

Downloading games is an exclusive feature for users with an Academic Plan or a Commercial Plan.

Get your Academic Plan or your Commercial Plan now and start integrating your games into your LMS, website or blog.

If you wish, you can download a demo game here and test its integration:

Ciclo For en Python

Fill in the Blanks

Played 53

About this activity

Juego para aprender la sintaxis básica de un ciclo For

Created by

Mexico

Download the paper version to play

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

%
Anonymous
Anonymous
%
%
%
You have exceeded the maximum number of games you can print with your current Plan.

To print as many games as you want, you need an Academic Plan or a Commercial Plan.

Print your game
Ciclo For en Python
 

Fill in the Blanks

Ciclo For en PythonOnline version

Juego para aprender la sintaxis básica de un ciclo For

by Gabriel Barrón Rodríguez
1

i 11 1 i

# Imprimir del 1 al 10
for in range ( , ) :
print ( )

2

i for in 0 1 range i 10

# Imprimir del 10 al 1
( , , - ) :
print ( )

3

frutas fruta fruta in

#Iterar sobre una lista
frutas = [ " manzana " , " pera " , " plátano " ]
for :
print ( f " Me gusta la { } " )

4

numeros 2 numero numero numeros 0 in numero

= [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ]
for :
if % = = :
print ( f " { } es par " )

5

0 for numero else in < range numero numero > elif 0 if

# Identificar números positivos , negativos y ceros
( 1 , 101 ) :
:
print ( f " { numero } es positivo " )
:
print ( f " { numero } es negativo " )
:
print ( f " { numero } es cero " )

6

2 in < numero numeros if 5 numero for numero numero

# Calcular solo los cuadrados de números menores a 5
numeros = [ 1 , 3 , 5 , 7 , 9 ]
:
:
print ( f " El cuadrado de { } es { * * } " )

7

in numero numero numero numeros 30 for

#Terminar el ciclo con break
numeros = [ 10 , 20 , 30 , 40 , 50 ]
:
if = = :
print ( " ¡ Encontré el número 30 ! Rompiendo el ciclo . . . " )
break
print ( f " Número : { } " )

8

3 numero in numero numeros

# Saltar elementos continue
numeros = [ 1 , 2 , 3 , 4 , 5 ]
for numero :
if = = :
continue # Saltar el número 3
print ( f " Número : { } " )

#Resultado : Número : 10 Número : 20 ¡ Encontré el número 30 ! Rompiendo el cicl o

9

numeros 2 if numero in numero 0 for

#Imprimir solo los números impares
numeros = [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ]
:
numero % ! = :
print ( f " { } es impar " )

10

if continue nombre for nombres in nombre

# Evitar Iteraciones Innecesarias , no imprime valores vacíos
nombres = [ " Ana " , " " , " Carlos " , " David " , " " ]
:
nombre = = " " : # Si el nombre está vacío
print ( " Nombre vacío encontrado , saltando . . . " )

print ( f " Hola , { } ! " )

Are you sure you want to leave the page?

If you leave the page, you will lose your game progress.