Sobes.tech
Intern — Senior

Create a square number generator

livecode

Task condition

Implement a generator in Python that takes an integer n and sequentially yields the squares of numbers from 0 to n-1.

def generate_squares(m):
    # TODO: generator for squares of numbers
    pass