0 out of 464 challenges solved
Write a Python function `next_perfect_square` that takes an integer `n` as input and returns the next perfect square greater than `n`. A perfect square is a number that can be expressed as the square of an integer. #### Example Usage ```python [main.nopy] next_perfect_square(35) # Output: 36 next_perfect_square(6) # Output: 9 next_perfect_square(9) # Output: 16 ```
import math def next_perfect_square(n): """ Find the next perfect square greater than the given number. Args: n (int): The input number. Returns: int: The next perfect square greater than n. """ # Placeholder for the solution pass