Please enable JavaScript to use CodeHS

Utah Introducción a Python 1 y 2

Description

En esta lección, los alumnos aprenderán a utilizar las sentencias if, que les permitirán utilizar condiciones para determinar cómo debe ejecutarse su código. También aprenderán a utilizar métodos de comparación de cadenas dentro de las declaraciones if.

Objective

Students will be able to:

  • Use if statements in order to tell Tracy how to make decisions
  • Use comparison string methods inside if statements
Description

En esta lección, los alumnos aprenderán a ampliar las declaraciones if incluyendo una forma de hacer que Tracy tome decisiones entre varios escenarios.

Objective

Students will be able to:

  • Use if/else statements in order to have Tracy make decisions between multiple scenarios
Description

En esta lección, los alumnos aprenderán por qué podemos querer devolver valores de las funciones y cómo implementarlo en sus propios programas. También profundizarán en la palabra clave in y cómo puede utilizarse en los programas.

Objective

Students will be able to:

  • use the return keyword to return values from function back to the main program
  • use the in keyword to check if a value is contained inside another
Description

En esta lección, los alumnos aprenderán que los while loops permiten ejecutar código repetidamente en función de una condición. También se les advertirá de que se crean bucles infinitos si nunca se cumple la condición de salida del bucle while, lo que hace que el código dentro del bucle while se repita continuamente, lo que provoca el fallo del programa, y aprenderán cómo se puede utilizar la instrucción break para evitarlo.

Objective

Students will be able to:

  • Effectively use while loops in their programs
  • Identify infinite loops
  • Use the break statement inside while loops
Description

En esta lección, los alumnos repasan los contenidos con un Cuestionario de Fin de Unidad de 10 preguntas.

Objective

Students will be able to:

  • Prove their knowledge of the following commands and concepts through a multiple choice quiz:
    • If Statements
    • Comparison String Methods
      • isalpha
      • isdigit/isnumeric
      • isupper
      • islower
      • startswith
      • endswith
    • If/Else Statements
      • With and without elif
    • in keyword
    • Using return in functions
    • While Loops
      • With and without break