
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
Formes d'énergie
Presentation
•
9th Grade
8 questions
El principio de Pascal
Presentation
•
10th Grade
7 questions
E-COMMERCE
Presentation
•
10th Grade
7 questions
La importancia del uso de las Tics en la educación
Presentation
•
KG
11 questions
La libertad 2. El existencialismo
Presentation
•
KG
11 questions
QUIMICA- ENLACES QUIMICOS
Presentation
•
10th Grade
11 questions
INTERNET
Presentation
•
10th Grade
7 questions
Futebol
Presentation
•
10th Grade
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
MyPath Diagnostic Overview
Presentation
•
6th - 8th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Adding and Subtracting Decimals
Quiz
•
5th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
21 questions
Lab Safety
Quiz
•
10th Grade
Discover more resources for Instructional Technology
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
21 questions
Lab Safety
Quiz
•
10th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
20 questions
Bloom Day School Community Quiz
Quiz
•
10th Grade
20 questions
Characteristics of Life
Quiz
•
9th - 10th Grade
9 questions
Scientific method
Interactive video
•
9th - 12th Grade
10 questions
Lab Safety Essentials
Interactive video
•
6th - 10th Grade
20 questions
Flinn Lab Safety Quiz
Quiz
•
9th - 12th Grade