Frage im Vorstellungsgespräch bei Revolut

Python knowledge: What is a decorator? What is a generator?