
while
Presentation
•
Instructional Technology
•
10th Grade
•
Practice Problem
•
Easy
DIANA ALEJANDRA BONILLA
Used 1+ times
FREE Resource
9 Slides • 2 Questions
1
By DIANA ALEJANDRA BONILLA
2
While (Ciclos)
¿Cansado de escribir lo mismo una y otra vez en tus programas? ¡Python tiene un súper poder llamado bucles para evitarlo! Hoy descubriremos el increíble bucle while, tu nueva herramienta para que la computadora repita tareas automáticamente.
3
4
Escribe tu código para que realice el conteo regresivo de 1 minuto (60 segundos)
5
6
7
Open Ended
Observa atentamente el siguiente código Python. Antes de hacer clic en cualquier otro botón, piensa:
¿Qué crees exactamente que aparecerá en la consola cuando este código se ejecute?
8
9
Conceptos Clave:
Bucle while: Repite un bloque de código mientras una condición sea verdadera (True).
Condición (numero > 0): Es una pregunta que Python responde con True o False. El bucle continúa solo si la respuesta es True.
10
Conceptos Clave:
Bloque Indentado: Son las líneas de código con sangría (espacio al inicio) dentro del while. Estas son las líneas que se repiten. ¡La indentación es súper importante en Python!
Variable de Control (numero): Es la variable que usamos en la condición y que debemos modificar dentro del bucle para que, eventualmente, la condición se vuelva False y el bucle pueda terminar. Si no cambia, ¡crearás un bucle infinito!
11
Open Ended
Ahora vamos a analizar el código línea por línea para entender la magia detrás del bucle while.
By DIANA ALEJANDRA BONILLA
Show answer
Auto Play
Slide 1 / 11
SLIDE
Similar Resources on Wayground
8 questions
Documentos importantes Liquidación de Sueldo
Presentation
•
10th Grade
7 questions
FACTORIZACION
Presentation
•
10th Grade
10 questions
Origem da Vida - 1º ano
Presentation
•
10th Grade
10 questions
NÚMEROS REALES
Presentation
•
10th Grade
12 questions
Way Maker
Presentation
•
KG
8 questions
Naturaleza y origen de la justicia en La república de Platón
Presentation
•
KG
10 questions
Aprendiendo con la computadora
Presentation
•
10th Grade
8 questions
La construcción social de los sistemas técnicos
Presentation
•
10th Grade
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
Discover more resources for Instructional Technology
26 questions
SLIME!!!!!
Quiz
•
KG - 12th Grade
20 questions
Cell organelles and functions
Quiz
•
10th Grade
10 questions
Exploring Chemical and Physical Changes
Interactive video
•
6th - 10th Grade
20 questions
Cell Transport
Quiz
•
9th - 12th Grade
10 questions
Exploring the Basics of Exponents
Interactive video
•
6th - 10th Grade
20 questions
Budgeting
Quiz
•
9th - 12th Grade
20 questions
Investing
Quiz
•
9th - 12th Grade
20 questions
Preterite vs. Imperfect
Quiz
•
10th Grade