
Condicionales en Python
Presentation
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Easy
DIANA ALEJANDRA BONILLA
Used 6+ times
FREE Resource
6 Slides • 7 Questions
1
By DIANA ALEJANDRA BONILLA
2
Categorize
68
decimo
juana
programación
Organice los siguientes datos de acuerdo a su categoría en programación (python)
3
Categorize
numeroPar
altura_metros
pesoEnKilogramos
total_ventas
promedioCalificaciones
1nombre
total ventas
peso@usuario
promedio-nota
altura.metros
nombre*usuario
edad!
Organice el nombre de las siguientes variables de acuerdo a si son válidas o no en Python
4
Drag and Drop
5
Drag and Drop
num1=int(input("ingresa el primer número: ")
num2=int(input("Ingresa el segundo número: ")
suma=num1+num2
6
Open Ended
Completa el siguiente código, para que el usuario pueda ver los números que ingresó y la suma de estos números.
Ejemplo. si el usuario ingresa num1=3 y num2=5 el mensaje debe ser: La suma entre 3 y 5 es 8.
num1=int(input("ingresa el primer número: ")
num2=int(input("Ingresa el segundo número: ")
suma=num1+num2
#ingresa tu código aquí
7
Drag and Drop
A>B
8
Una condición es como una pregunta que le hacemos al programa para que decida qué hacer en diferentes situaciones.
Imagina que estás en la vida real y piensas:
"Si hace frio, llevaré saco, sino, no lo empacaré"
En programación, esa misma lógica se aplica con los condicionales (if, elif, else).
Condicionales en python
9
Pregunta (Condición):
Se escribe usando operadores como >, <, ==, !=, >=, <=.
Ejemplo:
Partes de una decisión:
10
Alternativas (elif/else):
Si la primera condición no se cumple, podemos hacer otras preguntas (elif).
Si ninguna se cumple, el else se ejecuta.
Ejemplo:
Partes de una decisión:
11
12
Match
Une los siguientes símbolos de diagrama de flujo con su función:
Para iniciar o finalizar un programa
Se escriben las variables que necesitan
Es el mensaje que va a ver el usuario
permite evaluar una condición
Para iniciar o finalizar un programa
Se escriben las variables que necesitan
Es el mensaje que va a ver el usuario
permite evaluar una condición
13
By DIANA ALEJANDRA BONILLA
Show answer
Auto Play
Slide 1 / 13
SLIDE
Similar Resources on Wayground
9 questions
LOGARITMOS
Presentation
•
10th Grade
10 questions
Area y Volumen de cuerpos geometricos
Presentation
•
11th Grade
9 questions
El Lazarillo de Tormes
Presentation
•
10th Grade
12 questions
¿Qué sabes sobre...?
Presentation
•
10th Grade
9 questions
La Piedad Religiosa
Presentation
•
10th Grade
10 questions
LECTURA CRITICA
Presentation
•
11th Grade
10 questions
Lección Computación
Presentation
•
10th Grade
11 questions
LA DIVERSIDAD LINGÜÍSTICA EN EL ECUADOR (DIGLOSIA Y B)
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 Information Technology (IT)
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