reading-notes

Readings: Ten Thousand 3

Why is this important?

Reading Questions

  1. The basic syntax of Python list comprehension is my_new_list = [ expression for item in iterable_object ]. It differs by being more concise, faster and more efficient. squares = [x**2 for x in range(10)] - [ChatGPT]

  2. A decorator in Python is a function who’s role is to modify other functions/methods and behaviors. Decorators do this without modifying their code.

  3. A decorator adjusts functions behavior. Some decorator examples are used in classes which differentiate between method type between instance, static or class. @staticmethod

What do I want to know more about