Skip to content

Control flow #7

@yakutovicha

Description

@yakutovicha

Basics

  • Looping constructs and iterables
  • Altering and breaking out of loops: continue, break
  • if-else construct and problems with nesting too many branches
  • The else clause for loops

Advanced

  • The match construct (Python 3.10.x) to avoid nesting
  • Pros & cons of looping (when it's better to use functional programming methods)
  • Recursion and its limits
  • The built-in Exception class
  • Built-in exceptions: TypeError, NameError, KeyError, ZeroDivisionError, OverflowError
  • The try-except-finally construct
  • How to handle exceptions to have a stack trace useful for debugging

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions