0 out of 464 challenges solved
Write a Python function `perfect_squares(a, b)` that takes two integers `a` and `b` as input and returns a list of all perfect squares between `a` and `b` (inclusive). A perfect square is a number that can be expressed as the square of an integer. #### Example Usage ```python [main.nopy] perfect_squares(1, 30) # Returns [1, 4, 9, 16, 25] perfect_squares(50, 100) # Returns [64, 81, 100] perfect_squares(100, 200) # Returns [100, 121, 144, 169, 196] ```
def perfect_squares(a, b): """ Find all perfect squares between two numbers a and b (inclusive). Args: a (int): The starting number. b (int): The ending number. Returns: list: A list of perfect squares between a and b. """ # Placeholder for the solution pass