Skip to main content
Ctrl+K
F-Code Logo F-Code Logo

F-Code AI Crew

  • Python
  • Mathematics
  • Machine Learning
  • Deep Learning
  • Misc
  • F-Code AI GitHub
  • F-Code Facebook
  • Python
  • Mathematics
  • Machine Learning
  • Deep Learning
  • Misc
  • F-Code AI GitHub
  • F-Code Facebook

Section Navigation

Contents

  • Day 1
    • Variable
    • List
    • Numpy
    • Function
    • Further reading
    • Problem set
  • Day 2
    • Control Flow
    • Loops
    • Exception Handling
    • Testing
    • Debugging
  • Day 3
    • File I/O in Python
    • Dictionaries in Python
  • Day 6
    • Introduction to Streamlit
  • Python
  • Day 2

Day 2#

Contents

  • Control Flow
    • Conditional Statements
    • Using Logical Operators
    • Nested If Statements
    • Extra Tips and Tools
  • Loops
    • For Loop
    • Break and Continue
    • For Loop with Else
    • List Comprehension
    • While Loop
    • Break and Continue in While
    • While Loop with Else
    • Nested Loops
    • Applications of Loops
    • Additional Resources
  • Exception Handling
    • Introduction to Exceptions
    • Why handle exceptions?
    • The try…except Structure
    • Else Block
    • Finally Block
    • Raising Exceptions with raise
    • Additional Resources
  • Testing
    • Why Test?
    • Basic Types of Testing
    • Introduction to unittest
    • Writing Test Cases
    • Assert Methods
    • Organizing Test Suites
    • Running Tests
    • Introduction to pytest
    • Writing Tests
    • Fixtures
    • Running pytest
    • Writing Tests for Previous Chapters
    • Test-Driven Development (TDD)
    • Additional Resources
  • Debugging
    • Types of Errors
    • Using print for Debugging
    • Using Debugger in IDEs
    • Using the pdb Module
    • Understanding Tracebacks
    • Effective Debugging Techniques
    • Additional Resources

previous

Problem set

next

Control Flow

© Copyright 2025, F-Code AI Crew.

Created using Sphinx 8.2.3.

Built with the PyData Sphinx Theme 0.16.1.