Please enable JavaScript to use CodeHS

Utah Programación Informática 2

Description

En esta lección, aprendemos sobre funciones. Las funciones nos permiten dividir nuestro programa en diferentes partes que podemos organizar y reutilizar como nos guste. Las funciones son el principal componente de construcción de los programas complejos de Python.

Objective

Students will be able to:

  • modularize their programs with functions
Description

En esta lección, profundizamos en el concepto de funciones explorando cómo usar los parámetros.

Objective

Students will be able to:

  • Effectively use parameters to customize functions in their programs
Description

En esta lección, exploramos dónde existen las variables y cuál es la diferencia entre una variable local y global.

Objective

Students will be able to:

  • describe the different namespaces with regards to variables and functions
Description

En esta lección, los estudiantes exploran funciones con valores de retorno y profundizan su comprensión y capacidad para usar funciones.

Objective

Students will be able to:

  • remove complexity from their programs by abstracting with functions
  • generalize their functions with parameters
  • chain functions together using return values
Description

En esta lección, los estudiantes exploran la forma de Python de manejar errores con excepciones.

Objective

Students will be able to:

  • create programs that can gracefully handle exceptions
  • continue to function when an error is raised
Description

En esta lección, los estudiantes repasan el contenido con un Cuestionario de la Unidad de 15 preguntas.

Objective

Students will be able to:

  • Prove their knowledge of functions and exceptions through a multiple choice quiz
Description

Los estudiantes aprenderán cómo se puede usar la indexación para especificar un carácter específico en una string basándose en su ubicación.

Objective

Students will be able to:

  • use indexing in order to find a specific character in a string
Description

Los estudiantes aprenderán cómo la segmentación les permite seleccionar múltiples valores string a la vez a partir de una string dada.

Objective

Students will be able to:

  • use slicing to select a set of values from a string
Description

En Python, las strings tienen la propiedad de “inmutabilidad”, lo que significa que no pueden ser mutados o cambiados. Puede asignar strings a variables y reasignar nuevas strings a la misma variable, pero los caracteres individuales dentro de una string no pueden ser reasignados.

Objective

Students will be able to:

  • explain what immutability is and how this applies to strings in Python
Description

En esta lección, los estudiantes verán el uso de los for loops con strings. Como tanto los índices de las strings como los for loops empiezan en cero, se puede utilizar el valor len para recorrer las strings en un for loop. No es necesario utilizar índices de forma explícita. La sintaxis for character in my_string se puede utilizar para recorrer un for loop caracter por caracter.

Objective

Students will be able to:

  • iterate over characters in a string using for loops
Description

En esta lección, los estudiantes verán cómo la palabra clave in se puede usar en una instrucción if para ver si una letra o substring en particular está en una string.

Objective

Students will be able to:

  • use the in keyword to check if a character is in a string
Description

En esta lección, los estudiantes aprenderán sobre los métodos de strings. Los métodos son básicamente funciones que llamas en objetos y se pueden usar para alterar nuestras string de diferentes maneras.

Objective

Students will be able to:

  • use various string methods to alter string values
Description

En esta lección, los estudiantes repasan el contenido con un Cuestionario de la Unidad de 20 preguntas.

Objective

Students will be able to:

  • Prove their knowledge of strings through a multiple choice quiz
Description

En esta lección, los estudiantes aprenderán y practicarán el uso de tuplas. Una tupla es un tipo de datos heterogéneo e inmutable que almacena una secuencia ordenada de cosas a las que se puede acceder utilizando índices.

Objective

Students will be able to:

  • create and store information in tuples
  • explain the characteristics of a tuple
Description

En esta lección, los estudiantes aprenderán sobre su segunda estructura de datos, listas. Una lista es un tipo de dato mutable y heterogéneo que almacena una secuencia ordenada de cosas.

Objective

Students will be able to:

  • understand and explain the characteristics of a list
  • use lists to store and recall information
Description

En esta lección, los estudiantes aprenderán cómo las listas pueden ser iteradas de manera similar a las strings.

Objective

Students will be able to:

  • understand and explain the characteristics of a list
  • use for loops to go through items in a list
Description

Los métodos, en general, son como funciones que se pueden llamar en objetos. Los estudiantes han visto anteriormente cómo se llaman los métodos de string en las strings. ¡En esta lección, los estudiantes aprenderán sobre los diversos métodos de lista que se pueden llamar en las listas!

Objective

Students will be able to:

  • apply useful list methods to alter and access information about a list
Description

En esta lección, los estudiantes repasan el contenido con un Cuestionario de la Unidad de 15 preguntas.

Objective

Students will be able to:

  • Prove their knowledge of basic data structures through a multiple choice quiz
Description

En esta lección, los alumnos aprenderán cómo se almacenan las listas 2d y cómo utilizar la indexación y el troceado para extraer elementos concretos de una lista de listas.

Objective

Students will be able to:

  • Use 2d lists to store information in rows and columns
Description

En esta lección, los alumnos aprenderán a utilizar las comprensiones de lista para modificar los elementos de una lista con una sola línea de código.

Objective

Students will be able to:

  • Perform list comprehensions in order to alter all items in a list at once
Description

En esta lección, los alumnos aprenderán cómo empaquetar y desempaquetar hace que asignar variables a los elementos de una lista sea muy fácil y rápido.

Objective

Students will be able to:

  • Pack and unpack lists in order to quickly and efficiently assign variables to list items
Description

En esta lección, los alumnos verán en qué se diferencian los diccionarios de otras estructuras de datos y por qué son útiles.

Objective

Students will be able to:

  • Use dictionaries to structure data
Description

En esta lección, los alumnos repasan el contenido con un Cuestionario de la Unidad de 15 preguntas.

Objective

Students will be able to:

  • Prove their knowledge of data structures through a multiple choice quiz
Description

Este proyecto está dividido en varias partes para guiar a los alumnos en el desarrollo del juego.

Objective

Students will be able to:

  • use all concepts learned in this course to create a word guessing game in Python.
Description

El esquema de esta lección se centra en explicar los conceptos y la importancia de la E/S de archivos sin profundizar en la sintaxis de codificación. Proporciona una base para que los alumnos comprendan los fundamentos antes de sumergirse en los aspectos reales de la codificación en lecciones posteriores.

Objective

Students will be able to:

  • Define and explain file I/O.
  • Differentiate file types (e.g., text, binary).
  • Identify input sources and output destinations in computing.
  • Understand the purpose and significance of file input.
  • Understand the purpose and significance of file output.
  • Discuss real-world applications of file I/O.
Description

En esta lección, los alumnos aprenden a leer todos o un número determinado de caracteres de un archivo utilizando Python.

Objective

Students will be able to

  • Understand the importance of reading files and the role it plays in file handling tasks.
  • Use the open() function to open a file in read mode and the close() method to close the file properly.
  • Read the entire contents of a file using the read() method and store them in a variable
  • Handle common file exceptions, such as FileNotFoundError, when attempting to read a file.
Description

En esta lección, los alumnos aprenden a utilizar el método readline() para leer líneas de un archivo.

Objective

Students will be able to:

  • Understand the purpose and usage of the readline() method in Python for reading lines from a file.
  • Demonstrate how to open a file and use readline() to read a single line at a time.
  • Implement a loop to read and process multiple lines from a file using readline().
  • Handle end-of-file (EOF) situations by checking for an empty string returned by readline().
  • Adapt the readline() method to solve practical problems and perform operations on each line read from a file.
Description

En esta lección, los alumnos aprenden a utilizar el método readlines() de Python para leer varias líneas de un archivo, y practican la realización de diversas operaciones y manipulaciones en la línea

Objective

Students will be able to:

  • Understand the purpose and usage of the readlines() method in Python.
  • Read and retrieve multiple lines from a file using readlines().
  • Iterate through the lines obtained from readlines() and perform operations on each line.
  • Apply different manipulations and processing techniques to the lines read from a file.
  • Recognize the advantages and use cases of using readlines() in file handling scenarios.
Description

En esta lección, los alumnos aprenderán a escribir en archivos existentes. Explorarán dos modos: “w” para sobrescribir un archivo y “a” para añadir a un archivo.

Objective

Students will be able to:

  • Understand the purpose and importance of writing to files in programming.
  • Use the “w” mode to overwrite the contents of a file.
  • Use the “a” mode to append new data to the end of a file.
  • Demonstrate the ability to write text and data to a file using appropriate file handling techniques.
Description

En esta lección, los alumnos aprenderán a manipular la posición del puntero de un archivo utilizando el método seek() de Python. Explorarán cómo se puede utilizar buscar() para mover el puntero a una ubicación específica dentro de un archivo, permitiendo operaciones de lectura y escritura en las posiciones deseadas.

Objective

Students will be able to:

  • Understand the concept of a file pointer and its role in reading and writing data.
  • Use the seek() method to move the file pointer to a specific position within a file.
  • Perform reading operations at a desired file pointer position.
  • Perform writing operations at a specific location within a file.
  • Identify and handle potential errors or exceptions related to seek() operations.
Description

En esta lección, definiremos qué son las clases y los objetos y aprenderemos cómo desglosar el código en esta estructura. Aprenderán a usar el método init para dar atributos a los objetos.

Objective

SWBAT define class and object as well as create them inside their programs.

SWBAT create an init method to give attributes to objects.

Description

En esta lección, comenzaremos a definir y llamar métodos en objetos.

Objective

SWBAT create methods inside class definitions and call them on objects.

Description

En esta lección, aprenderemos cómo sobrescribir (override) los métodos incorporados repr y eq para definir cómo el objeto creará una representación de string de sí mismo y definir la equivalencia para una clase específica.

Objective

SWBAT override the repr method to define how the object will create a string representation of itself.
SWBAT override the eq method to define equivalence for this specific class.

Description

En esta lección, los estudiantes aprenderán sobre la sobrecarga del operador y cómo los métodos matemáticos pueden redefinirse anulando su método en la definición de clase.

Objective

SWBAT override mathematical operators to redefine the way mathematical functions are performed.

Description

En esta lección, los estudiantes aprenderán sobre la diferencia entre las variables de clase y de instancia y cómo se ubican.

Objective

SWBAT describe the differences between class and instance variables.

Description

En esta lección, los alumnos explorarán las carreras disponibles en ciencias de la computación y aprenderán cómo los prejuicios pueden afectar a los programas informáticos.

Objective

Students will explore different computer science careers and opportunities.
Students will learn how bias can affect computer programs.

Description

En esta lección, los alumnos comienzan su viaje de planificación profesional. Los alumnos realizan una autoevaluación, exploran diversas opciones profesionales y determinan las habilidades o la educación necesarias para obtener las carreras que desean seguir.

Objective

Students will be able to:

  • Reflect on their unique strengths, skills, passions, and career aspirations
  • Explore an array of career paths through research, articles, and job postings
  • Perform a career gap analysis to identify the differences between their current skill and the required qualifications for careers they wish to pursue