Skip to content
Official Python Logo

Python Refresher

Executive Summary

This resource helps students entering Computational Thinking II strengthen the key concepts learned in Computational Thinking I.

Purpose

This resource is designed for self-paced study. It provides concise explanations, examples, practice exercises, Python Shorts (brief video micro-lessons), and interactive Google Colab notebooks. The ultimate goal is to strengthen your foundational knowledge to support your success in Computational Thinking II.

For guidance on efficient use of Colab, please consult the "Google Colab - Beginner Guide" under the Resources section in the navigation bar.

Roadmap of Topics

For an effective review, we suggest following the logical order of the modules. This site covers:

  1. Computational Thinking: Core ideas of computational problem-solving.
  2. Input-Process-Output: The fundamental structure of any program.
  3. Algorithms: The design of precise, step-by-step instructions.
  4. Variables & Constants: How to store and manipulate data.
  5. Data Types: Understanding fundamental data types (int, float, str, bool) and type casting.
  6. Arithmetic Operators: Using Python’s arithmetic operators, precedence, and expressions.
  7. Conditionals & Relational Operators: Using if and else to make decisions in code.
  8. Nested & Multiple Conditionals: Building complex decisions with elif and nested conditions.
  9. Compound Conditions: Combining conditions with and, or, and not for powerful decision logic.
  10. While Loop: Repeating code blocks as long as a condition remains True, primarily for unknown repetitions.
  11. For Loop: Repeating code blocks a specific number of times or iterating over a sequence, primarily for known repetitions.
  12. Final Challenge: A cumulative, hands-on exercise integrating key concepts from the entire refresher.

Authorship and Technical Details

Contact

Version Control

  • Current Version: v1.0.1 (January 2026)
  • Last Updated: January 2026

Academic Disclaimer

This resource is supplementary and support material. Under no circumstances does it replace the content, activities, or assessments of the official course classes or instruction. Its use is optional and intended solely to reinforce your understanding.

All original educational content on this site (text, code examples, diagrams, exercises, quizzes, video micro-lessons, and notebooks), excluding the Python logo (PSF rights) and AI-generated images, is distributed under the following license:

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)

This means you are free to use, modify, and share this material, provided you:

  1. Attribute authorship to Juan Carlos Leal González.
  2. Do not use it for Commercial Purposes.
  3. Share modifications under the same license (ShareAlike).

Image Credits and Usage

The images used in the site content and interactive notebooks were created with Canva's AI tools (Magic Media) and are used according to Canva's content guidelines. They are intended solely for educational purposes and are excluded from the CC BY-NC-SA 4.0 license.

Getting Started

👉 Start with the first module: Computational Thinking ↗