Analysis updated 2026-08-15 · repo last pushed 2018-06-21
Learn how to write if/else statements that make your Python code run only when conditions are met.
Combine conditionals with loops to filter a list and keep only matching items.
Understand truthiness so you know which values Python treats as true or false.
Practice runnable code examples in a Jupyter Notebook to build confidence reading and writing Python.
| willcl-ark/conditionals-python-readme-data-science-intro-000 | agostynah/distributed-vector-memory-routing | akashsingh3031/python-libraries | |
|---|---|---|---|
| Stars | — | 0 | — |
| Language | Jupyter Notebook | Jupyter Notebook | Jupyter Notebook |
| Last pushed | 2018-06-21 | — | 2020-12-03 |
| Maintenance | Dormant | — | Dormant |
| Setup difficulty | easy | moderate | easy |
| Complexity | 1/5 | 3/5 | 1/5 |
| Audience | vibe coder | researcher | vibe coder |
Figures from each repo's GitHub metadata at analysis time.
Open the notebook in Jupyter and run the cells, no dependencies beyond a standard Python install.
This repository is a beginner-friendly lesson that teaches you how to make your Python code make decisions. Instead of your program running every line top to bottom no matter what, you learn how to tell it to do something only when a specific condition is met, like "if the vacation is longer than four days, call it a long vacation." The lesson walks through the if and else keywords in Python, showing how you can control which lines of code actually run. It starts with simple examples: setting a variable and only changing it when a condition is true. From there it covers "truthiness", Python's way of treating values like 1 or a non-empty string as "true" and values like 0, None, or empty lists as "false" without needing an explicit comparison. It finishes by combining conditionals with loops, so you can filter a list and keep only the items that match a rule, such as pulling out every greeting that starts with the letter "h." The audience here is someone just starting to learn Python, maybe a founder tinkering with prototypes, a PM who wants to read code more confidently, or a beginner working through data science fundamentals. The examples are deliberately simple and concrete: vacation days, greetings, short functions. You don't need any prior experience beyond basic variables and loops. The project is built as a Jupyter Notebook, which means the lesson mixes explanatory text with runnable code cells, so you can experiment as you read. There's nothing flashy here, it's a straightforward teaching resource covering one core concept thoroughly.
A beginner Python lesson that teaches if/else conditionals and truthiness using simple, runnable Jupyter Notebook examples like vacation days and filtering greetings.
Mainly Jupyter Notebook. The stack also includes Python, Jupyter Notebook.
Dormant — no commits in 2+ years (last push 2018-06-21).
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly vibe coder.
This repo across BitVibe Labs
Verify against the repo before relying on details.