
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
10 questions
La computadora y mi salud
Presentation
•
10th Grade
10 questions
Sistema Operativo
Presentation
•
10th Grade
8 questions
Cuento hasta 10
Presentation
•
10th Grade
8 questions
Matemáticas ICFES
Presentation
•
10th Grade
9 questions
DESAFIO_PROVAPR_9_EF_HIST_001
Presentation
•
9th Grade
9 questions
Justicia 2. La igualdad
Presentation
•
KG
8 questions
Artículo de opinión
Presentation
•
10th Grade
9 questions
Independencia de las 13 colonias
Presentation
•
10th Grade
Popular Resources on Wayground
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
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
Discover more resources for Instructional Technology
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Exploring the 4 Major Macromolecules and Their Functions
Interactive video
•
9th - 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
20 questions
Budgeting
Quiz
•
9th - 12th Grade
20 questions
Investing
Quiz
•
9th - 12th Grade
20 questions
Ser y estar
Quiz
•
9th - 10th Grade