Week 2 Module

Week 2 of 43
Foundation
WEEK 2 LEARNING MODULE

Python Fundamentals, Conditionals, Loops & Functions

Covers essential Python programming mechanics including conditional logic, iteration with for/while loops, function definitions, and anonymous lambda expressions.

5 Practice Problems4 Core ConceptsVerified Curriculum: high Confidence

What You'll Learn

  • Master Python conditionals (if-elif-else) and loop structures (for, while).
  • Define modular functions and write concise one-line lambda functions.
  • Solve foundational algorithmic problems on LeetCode and HackerRank using basic control flow.
  • Follow structured solution submission formats using hashtags and markdown code blocks.

Core Concepts

Conditionals & Control Flow

Branching execution paths using if, elif, and else statements.

Loops & Iteration

Iterating over sequences and ranges using for and while loops.

Functions & Lambda Expressions

Declaring standard functions with def and anonymous inline functions with lambda.

Common Prefix Matching

Comparing strings character by character across an array to find common initial substrings.

Algorithms Covered
String Prefix MatchingModular Exponentiation
Data Structures Applied
StringsIntegers

A year from now, you may wish you had started today.

Karen Lamb

Lecture Materials (1)

Official lecture slide decks hosted on Google Drive
Official Slide Deck3.9 MB

A2SV_G6_Remote_Python_Track_Python_Basics,_Conditionals,_Loops_and.pdf

Topic: A2SV G6 Remote Python Track Python Basics, Conditionals, Loops and

Format: PDF

Curated Practice Problems (5)

Track problem completions synced across your curriculum