Generadores: producir datos sobre la marcha

Un generador es una función que se comporta como un iterador. A diferencia de una función normal, no devuelve un valor grande y sale. Hace una pausa, genera un valor y espera hasta que se solicita el siguiente valor. Eso le permite manejar transmisiones infinitas sin llenar la RAM.

Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.