# Initial page

### Short Form

<https://bit.ly/3jmUZ4F>

### The Most Popular Ones

[The Best Way to Compare Two Dictionaries in Python](https://miguendes.me/the-best-way-to-compare-two-dictionaries-in-python)

[What if Python Had This Ruby Feature?](https://miguendes.me/what-if-python-had-this-ruby-feature)

[3 Ways to Unit Test REST APIs in Python](https://miguendes.me/3-ways-to-test-api-client-applications-in-python)

[How to Pass Multiple Arguments to a map Function in Python](https://miguendes.me/how-to-pass-multiple-arguments-to-a-map-function-in-python)

[How to Check if an Exception Is Raised (or Not) With pytest](https://miguendes.me/how-to-check-if-an-exception-is-raised-or-not-with-pytest)

[How to Check If a String Is a Valid URL in Python](https://miguendes.me/how-to-check-if-a-string-is-a-valid-url-in-python)

### Everything Else

#### Aug, 2021

[What if Python Had This Ruby Feature?](https://miguendes.me/what-if-python-had-this-ruby-feature)

#### Jul, 2021

[11 Useful Resources To Learn Python's Internals From Scratch](https://miguendes.me/useful-resources-to-learn-pythons-internals-from-scratch)

#### Apr, 2021

[How to Implement a Random String Generator With Python](https://miguendes.me/how-to-implement-a-random-string-generator-with-python)

#### Feb, 2021

[How to Sort a Dict in Descending Order by Value With Python](https://miguendes.me/how-to-sort-a-dict-in-descending-order-by-value-with-python)

#### Dec 2020

[How to Check If a String Is a Valid URL in Python](https://miguendes.me/how-to-check-if-a-string-is-a-valid-url-in-python)

[How to Find the Current Working Directory in Python](https://miguendes.me/how-to-find-the-current-working-directory-in-python)

[5 Different Ways to Flatten a List of Lists in Python](https://miguendes.me/5-different-ways-to-flatten-a-list-of-lists-in-python)

[Design Patterns That Make Sense in Python: Simple Factory](https://miguendes.me/design-patterns-that-make-sense-in-python-simple-factory)

#### Nov, 2020

[How to Pass Multiple Arguments to a map Function in Python](https://miguendes.me/how-to-pass-multiple-arguments-to-a-map-function-in-python)

[How to Use Fixtures as Arguments in pytest.mark.parametrize](https://miguendes.me/how-to-use-fixtures-as-arguments-in-pytestmarkparametrize)

[How to Use datetime.timedelta in Python With Examples](https://miguendes.me/how-to-use-datetimetimedelta-in-python-with-examples)

[73 Examples to Help You Master Python's f-strings](https://miguendes.me/73-examples-to-help-you-master-pythons-f-strings)

#### Oct, 2020

[How to Check if an Exception Is Raised (or Not) With pytest](https://miguendes.me/how-to-check-if-an-exception-is-raised-or-not-with-pytest)

[How to Shoot Yourself in the Foot With Python. Part 1.](https://miguendes.me/how-to-shoot-yourself-in-the-foot-with-python-part-1)

[The Best Way to Compare Two Dictionaries in Python](https://miguendes.me/the-best-way-to-compare-two-dictionaries-in-python)

[5 Hidden Python Features You Probably Never Heard Of](https://miguendes.me/5-hidden-python-features-you-probably-never-heard-of)

[7 pytest Features and Plugins That Will Save You Tons of Time](https://miguendes.me/7-pytest-features-and-plugins-that-will-save-you-tons-of-time)

#### Sep, 2020

[Everything You Need to Know About Python's Namedtuples](https://miguendes.me/everything-you-need-to-know-about-pythons-namedtuples)

[3 Ways to Unit Test REST APIs in Python](https://miguendes.me/3-ways-to-test-api-client-applications-in-python)

[How to Unit Test Complex Data Like Numpy Arrays in Python](https://miguendes.me/how-to-test-complex-data-in-python)

[7 pytest Plugins You Must Definitely Use](https://miguendes.me/7-pytest-plugins-you-must-definitely-use)

#### Aug, 2020

[How I Set up Multiple Python Versions with pyenv on Linux](https://miguendes.me/how-i-set-up-my-python-workspace)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://miguendes.gitbook.io/my-notes/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
