Skip to the content.

Sprint 2 Personal Blog

personal blog for sprint 2

Sprint 2 Personal Blog

Lesson Taught

  • Our group was responsible for teaching Lesson 3.10 on Lists, and I focused specifically on accessing and deleting elements. I explained how positive and negative indexing can be used to access elements in a list, and demonstrated the syntax for deleting elements.

Lesson Hack

  • For my hack, I tasked students with creating a list, displaying the second element (index 1), deleting that element, and then displaying the updated list.

Summary of Units

3.1: Variables and Data Types

  • This unit introduces variables in Python and JavaScript, explaining their types and usage. Variables store data that can change based on input, and good naming practices improve readability. Python uses types like integers, strings, booleans, floats, and lists, while JavaScript adds arrays and objects. The unit also covers string concatenation, printing variables, and basic operators.

3.2: Python Data Types

  • This unit explores Python’s core data types, including integers, floats, strings, lists, tuples, dictionaries, sets, booleans, and None. Each type serves different programming purposes, from storing numbers and text to organizing data in key-value pairs.

3.3: Algorithms and Operations

  • An algorithm is a step-by-step process to solve a problem. This unit covers sequencing, selection, and iteration as key algorithm components, illustrated with flowcharts and pseudocode. It also explains mathematical operations in Python, following the order of operations for calculations.

3.4: String Manipulation

  • This unit teaches how to manage strings in Python, including accessing characters via indexing, slicing, and using functions like .lower(), .upper(), .count(), and .replace(). JavaScript strings are similarly handled but are immutable, requiring careful manipulation.

3.5: Relational and Logical Operators

  • Here, we learned about relational and logical operators in Python and JavaScript, which help compare values and control program flow. The unit also introduced De Morgan’s Laws for simplifying logical expressions.

3.6: Conditionals

  • This unit covers conditionals in programming, including if, if-else, if-else if-else, switch statements, and ternary operators. These structures are essential for controlling the flow of a program based on conditions.

3.7: Nested Conditionals

  • This lesson builds on conditionals, showing how to nest if statements for more complex decision-making.

3.8: Loops and Recursion

  • We explored while loops, for loops, and recursion, key tools for iterating through data or repeating tasks. The lesson also touched on error handling using try/except blocks for managing exceptions in loops.