
while
Presentation
•
Instructional Technology
•
10th Grade
•
Practice Problem
•
Easy
DIANA ALEJANDRA BONILLA
Used 1+ times
FREE Resource
9 Slides • 2 Questions
1
Ciclos en python
By DIANA ALEJANDRA BONILLA
2
Ciclos en python
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
Ahora es tu turno
Escribe tu código para que realice el conteo regresivo de 1 minuto (60 segundos)
5
Es broma!
6
¡Conviértete en Adivino de Código!
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.
Ciclos en python
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
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade