Embed presentation
Download to read offline


The document presents Python code that defines two functions, next_int1 and next_int2, to generate integers. It poses questions about the output of the program, the suitability of each function for the intended purpose, naming suggestions, and critiques the implementation of next_int2. Additionally, it addresses the need for the global statement in certain contexts.

