
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
8 questions
Diseño industrial
Presentation
•
11th Grade
10 questions
TAG QUESTIONS
Presentation
•
10th Grade
8 questions
Resguardo de identidad
Presentation
•
10th Grade
7 questions
LENGUA MATERNA
Presentation
•
10th Grade
9 questions
La Educación
Presentation
•
KG
10 questions
FIRST CONDITIONAL (review)
Presentation
•
10th - 11th Grade
10 questions
Democracia y Participacion Ciudadana
Presentation
•
10th Grade
10 questions
Emprendimiento
Presentation
•
10th Grade
Popular Resources on Wayground
10 questions
GPA Lesson
Presentation
•
9th - 12th Grade
7 questions
Albert Einstein
Quiz
•
3rd Grade
31 questions
Bridge A Review
Quiz
•
3rd Grade
6 questions
Blue Sue and Red Ruth
Quiz
•
3rd Grade
8 questions
(Day12 HW) Inverse Trig Ratios
Quiz
•
9th Grade
20 questions
Summer Geometry QUIZ (Week3)
Quiz
•
9th Grade
16 questions
Theme Practice
Quiz
•
7th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
Discover more resources for Instructional Technology
10 questions
GPA Lesson
Presentation
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
16 questions
Translations and Reflections
Quiz
•
9th - 10th Grade
17 questions
High School Survival Guide
Presentation
•
9th - 12th Grade
20 questions
Banking
Quiz
•
9th - 12th Grade
20 questions
Budgeting
Quiz
•
9th - 12th Grade