reading-notes

This Repo required for Asac labs class 2


Project maintained by ManarAbdelkarim Hosted on GitHub Pages — Theme by mattgraham

Read:04 Topic

Classes and Objects

Accessing Object Variables

Thinking Recursively in Python

typical structure of a recursive algorithm:

If the current problem represents a simple case, solve it. If not, divide it into sub-problems and apply the same strategy to them A recursive function: is a function defined in terms of itself via self-referential expressions.

When dealing with recursive functions, keep in mind that each recursive call has its own execution context

Pytest Fixtures and Coverage

Fixtures:

In pytest, you define fixtures using a combination of the pytest.fixture decorator, along with a function definition. For example, say you have a file that returns a list of lines from a file, in which each line is reversed:

Coverage:

its a package that will create a report with every part of the python library to the used program